Handle ignoring 0x3F for navi talk skips (#4364)

This commit is contained in:
Garrett Cox 2024-09-24 12:56:56 -05:00 committed by GitHub
parent 0f02201108
commit 4e4c1c4f8a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -317,9 +317,11 @@ void TimeSaverOnVanillaBehaviorHandler(GIVanillaBehavior id, bool* should, void*
case VB_NAVI_TALK: {
if (CVarGetInteger(CVAR_ENHANCEMENT("TimeSavers.NoForcedDialog"), IS_RANDO)) {
ElfMsg* naviTalk = static_cast<ElfMsg*>(opt);
Flags_SetSwitch(gPlayState, (naviTalk->actor.params >> 8) & 0x3F);
Actor_Kill(&naviTalk->actor);
*should = false;
if (((naviTalk->actor.params >> 8) & 0x3F) != 0x3F) {
Flags_SetSwitch(gPlayState, (naviTalk->actor.params >> 8) & 0x3F);
Actor_Kill(&naviTalk->actor);
*should = false;
}
}
break;
}