radio fixes: co-authored-by: @Malkierian

This commit is contained in:
Sonic Dreamcaster 2024-12-09 05:11:00 -03:00
parent 3599322983
commit 99d13ea7d2
2 changed files with 4 additions and 2 deletions

View file

@ -98,7 +98,7 @@ extern s32 gRadioMsgCharIndex;
extern UNK_TYPE F_801782E0;
extern s32 gRadioMsgId;
extern UNK_TYPE F_801782F0;
extern s32 gMsgCharIsPrinting;
extern bool gMsgCharIsPrinting;
extern bool gHideRadio;
extern u16* gRadioMsg;
extern ObjectInit* gLevelObjects;

View file

@ -613,7 +613,7 @@ void Radio_Draw(void) {
if (!(fakeTemp)) {
ret = Audio_GetCurrentVoiceStatus();
if ((gGameState == GSTATE_TITLE) && gRadioMsg[gRadioMsgCharIndex + 1] != MSGCHAR_END) {
if (gRadioMsgCharIndex < 60 && gRadioMsg[gRadioMsgCharIndex + 1] != MSGCHAR_END) {
if (gRadioMsg[gRadioMsgCharIndex + 1] == MSGCHAR_NXT) {
if (ret == 0) {
gRadioState = 31;
@ -621,6 +621,8 @@ void Radio_Draw(void) {
} else {
gRadioMsgCharIndex++;
}
} else if (gRadioMsgCharIndex < 60) {
gRadioMsgCharIndex = 60;
}
if (sRadioCheckMouthFlag) {