mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-07 14:50:15 +00:00
Matched EnPoRelay, DemoGt, one more in EnPoSisters, and cleanup BgBdanSwitch (#513)
* Darkmeiro decompilation Bg_Gnd_Darkmeiro decompiled, matched, and documented. * give this a shot * fix conflict * one more try * could be useful * whoops * ZAP2 stuff * ZAP why * ZAP again * more matchings, some cleanup * small cleanup
This commit is contained in:
parent
9d63626343
commit
756f6dc393
14 changed files with 112 additions and 1288 deletions
|
@ -101,11 +101,11 @@ void ObjLightswitch_SetSwitchFlag(ObjLightswitch* this, GlobalContext* globalCtx
|
|||
Flags_SetSwitch(globalCtx, this->actor.params >> 8 & 0x3F);
|
||||
|
||||
if (type == OBJLIGHTSWITCH_TYPE_1) {
|
||||
func_800806BC(globalCtx, thisx, 0x4807);
|
||||
func_800806BC(globalCtx, thisx, NA_SE_SY_TRE_BOX_APPEAR);
|
||||
} else if (type == OBJLIGHTSWITCH_TYPE_BURN) {
|
||||
func_800806BC(globalCtx, thisx, 0x4806);
|
||||
func_800806BC(globalCtx, thisx, NA_SE_SY_ERROR);
|
||||
} else {
|
||||
func_800806BC(globalCtx, thisx, 0x4802);
|
||||
func_800806BC(globalCtx, thisx, NA_SE_SY_CORRECT_CHIME);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -115,7 +115,7 @@ void ObjLightswitch_ClearSwitchFlag(ObjLightswitch* this, GlobalContext* globalC
|
|||
Flags_UnsetSwitch(globalCtx, this->actor.params >> 8 & 0x3F);
|
||||
|
||||
if ((this->actor.params >> 4 & 3) == OBJLIGHTSWITCH_TYPE_1) {
|
||||
func_800806BC(globalCtx, &this->actor, 0x4807);
|
||||
func_800806BC(globalCtx, &this->actor, NA_SE_SY_TRE_BOX_APPEAR);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue