mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-07-31 03:50:37 -07: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
1 changed files with 7 additions and 4 deletions
|
@ -340,11 +340,14 @@ void TimeSaverOnVanillaBehaviorHandler(GIVanillaBehavior id, bool* should, va_li
|
||||||
if (ForcedDialogIsDisabled(FORCED_DIALOG_SKIP_NAVI)) {
|
if (ForcedDialogIsDisabled(FORCED_DIALOG_SKIP_NAVI)) {
|
||||||
ElfMsg* naviTalk = va_arg(args, ElfMsg*);
|
ElfMsg* naviTalk = va_arg(args, ElfMsg*);
|
||||||
int32_t paramsHighByte = naviTalk->actor.params >> 8;
|
int32_t paramsHighByte = naviTalk->actor.params >> 8;
|
||||||
if ((paramsHighByte & 0x80) == 0 && (paramsHighByte & 0x3F) != 0x3F) {
|
if ((paramsHighByte & 0x80) != 0) {
|
||||||
Flags_SetSwitch(gPlayState, paramsHighByte & 0x3F);
|
break;
|
||||||
Actor_Kill(&naviTalk->actor);
|
|
||||||
*should = false;
|
|
||||||
}
|
}
|
||||||
|
if ((paramsHighByte & 0x3F) != 0x3F) {
|
||||||
|
Flags_SetSwitch(gPlayState, paramsHighByte & 0x3F);
|
||||||
|
}
|
||||||
|
Actor_Kill(&naviTalk->actor);
|
||||||
|
*should = false;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue