From 84236e7ac334c992e78920af0dfa1d6354413b51 Mon Sep 17 00:00:00 2001 From: briaguya <70942617+briaguya-ai@users.noreply.github.com> Date: Thu, 21 Jul 2022 20:11:13 -0400 Subject: [PATCH] stop floor under shadow statue opening immediately (#857) * stop floor under shadow statue opening immediately * use ActorResetFunc to reset sStatueRotY Co-authored-by: briaguya --- soh/src/overlays/actors/ovl_Bg_Haka_Gate/z_bg_haka_gate.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/soh/src/overlays/actors/ovl_Bg_Haka_Gate/z_bg_haka_gate.c b/soh/src/overlays/actors/ovl_Bg_Haka_Gate/z_bg_haka_gate.c index bc77e2c26..894bf51fb 100644 --- a/soh/src/overlays/actors/ovl_Bg_Haka_Gate/z_bg_haka_gate.c +++ b/soh/src/overlays/actors/ovl_Bg_Haka_Gate/z_bg_haka_gate.c @@ -34,6 +34,7 @@ void BgHakaGate_Init(Actor* thisx, GlobalContext* globalCtx); void BgHakaGate_Destroy(Actor* thisx, GlobalContext* globalCtx); void BgHakaGate_Update(Actor* thisx, GlobalContext* globalCtx); void BgHakaGate_Draw(Actor* this, GlobalContext* globalCtx); +void BgHakaGate_Reset(void); void BgHakaGate_DoNothing(BgHakaGate* this, GlobalContext* globalCtx); void BgHakaGate_StatueInactive(BgHakaGate* this, GlobalContext* globalCtx); @@ -62,7 +63,7 @@ const ActorInit Bg_Haka_Gate_InitVars = { (ActorFunc)BgHakaGate_Destroy, (ActorFunc)BgHakaGate_Update, (ActorFunc)BgHakaGate_Draw, - NULL, + (ActorResetFunc)BgHakaGate_Reset, }; static InitChainEntry sInitChain[] = { @@ -378,3 +379,7 @@ void BgHakaGate_Draw(Actor* thisx, GlobalContext* globalCtx) { BgHakaGate_DrawFlame(this, globalCtx); } } + +void BgHakaGate_Reset(void) { + sStatueRotY = 0; +}