Skip to content

Commit

Permalink
stop floor under shadow statue opening immediately (#857)
Browse files Browse the repository at this point in the history
* stop floor under shadow statue opening immediately

* use ActorResetFunc to reset sStatueRotY

Co-authored-by: briaguya <briaguya@alice>
  • Loading branch information
briaguya-ai and briaguya authored Jul 22, 2022
1 parent 52f2227 commit 84236e7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion soh/src/overlays/actors/ovl_Bg_Haka_Gate/z_bg_haka_gate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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[] = {
Expand Down Expand Up @@ -378,3 +379,7 @@ void BgHakaGate_Draw(Actor* thisx, GlobalContext* globalCtx) {
BgHakaGate_DrawFlame(this, globalCtx);
}
}

void BgHakaGate_Reset(void) {
sStatueRotY = 0;
}

0 comments on commit 84236e7

Please sign in to comment.