mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-12-17 22:02:19 -05:00
Properly replicate NaviTalk kill check (#4647)
* Restrict disabled Navi workaround to Dodongo's Cavern * Properly replicate NaviTalk kill check * Move `*should = false` out of condition
This commit is contained in:
parent
35dcf93c51
commit
f852d70767
@ -340,12 +340,15 @@ void TimeSaverOnVanillaBehaviorHandler(GIVanillaBehavior id, bool* should, va_li
|
||||
if (ForcedDialogIsDisabled(FORCED_DIALOG_SKIP_NAVI)) {
|
||||
ElfMsg* naviTalk = va_arg(args, ElfMsg*);
|
||||
int32_t paramsHighByte = naviTalk->actor.params >> 8;
|
||||
if ((paramsHighByte & 0x80) == 0 && (paramsHighByte & 0x3F) != 0x3F) {
|
||||
if ((paramsHighByte & 0x80) != 0) {
|
||||
break;
|
||||
}
|
||||
if ((paramsHighByte & 0x3F) != 0x3F) {
|
||||
Flags_SetSwitch(gPlayState, paramsHighByte & 0x3F);
|
||||
}
|
||||
Actor_Kill(&naviTalk->actor);
|
||||
*should = false;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case VB_NOT_BE_GREETED_BY_SARIA:
|
||||
|
Loading…
Reference in New Issue
Block a user