diff options
author | GriffinR <griffin.richards@comcast.net> | 2019-11-24 19:11:36 -0500 |
---|---|---|
committer | huderlem <huderlem@gmail.com> | 2019-11-25 09:16:05 -0600 |
commit | cfdde42b009a80939297dd441fe39385f54d31f4 (patch) | |
tree | 105b6c33c01b38d1712e004e3db4380234934599 /src | |
parent | 9a816610754ddb25addd624707779a133d357315 (diff) |
Name text speed delays
Diffstat (limited to 'src')
-rw-r--r-- | src/menu.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/menu.c b/src/menu.c index 056fc6a9d..72844140f 100644 --- a/src/menu.c +++ b/src/menu.c @@ -62,7 +62,13 @@ static EWRAM_DATA u16 gUnknown_0203CDA8 = 0; static EWRAM_DATA void *gUnknown_0203CDAC[0x20] = {NULL}; const u16 gUnknown_0860F074[] = INCBIN_U16("graphics/interface/860F074.gbapal"); -static const u8 gUnknown_0860F094[] = { 8, 4, 1 }; + +static const u8 sTextSpeedFrameDelays[] = +{ + [OPTIONS_TEXT_SPEED_SLOW] = 8, + [OPTIONS_TEXT_SPEED_MID] = 4, + [OPTIONS_TEXT_SPEED_FAST] = 1 +}; static const struct WindowTemplate sStandardTextBox_WindowTemplates[] = { @@ -480,7 +486,7 @@ u8 GetPlayerTextSpeedDelay(void) if (gSaveBlock2Ptr->optionsTextSpeed > OPTIONS_TEXT_SPEED_FAST) gSaveBlock2Ptr->optionsTextSpeed = OPTIONS_TEXT_SPEED_MID; speed = GetPlayerTextSpeed(); - return gUnknown_0860F094[speed]; + return sTextSpeedFrameDelays[speed]; } u8 sub_81979C4(u8 a1) |