Skip to content

Commit

Permalink
Handle ignoring 0x3F for navi talk skips (#4364)
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettjoecox authored Sep 24, 2024
1 parent 0f02201 commit 4e4c1c4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions soh/soh/Enhancements/timesaver_hook_handlers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4e4c1c4

Please sign in to comment.