stop floor under shadow statue opening immediately (#857)

* stop floor under shadow statue opening immediately

* use ActorResetFunc to reset sStatueRotY

Co-authored-by: briaguya <briaguya@alice>
This commit is contained in:
briaguya 2022-07-21 20:11:13 -04:00 committed by GitHub
parent 52f22275e3
commit 84236e7ac3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,6 +34,7 @@ void BgHakaGate_Init(Actor* thisx, GlobalContext* globalCtx);
void BgHakaGate_Destroy(Actor* thisx, GlobalContext* globalCtx); void BgHakaGate_Destroy(Actor* thisx, GlobalContext* globalCtx);
void BgHakaGate_Update(Actor* thisx, GlobalContext* globalCtx); void BgHakaGate_Update(Actor* thisx, GlobalContext* globalCtx);
void BgHakaGate_Draw(Actor* this, GlobalContext* globalCtx); void BgHakaGate_Draw(Actor* this, GlobalContext* globalCtx);
void BgHakaGate_Reset(void);
void BgHakaGate_DoNothing(BgHakaGate* this, GlobalContext* globalCtx); void BgHakaGate_DoNothing(BgHakaGate* this, GlobalContext* globalCtx);
void BgHakaGate_StatueInactive(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_Destroy,
(ActorFunc)BgHakaGate_Update, (ActorFunc)BgHakaGate_Update,
(ActorFunc)BgHakaGate_Draw, (ActorFunc)BgHakaGate_Draw,
NULL, (ActorResetFunc)BgHakaGate_Reset,
}; };
static InitChainEntry sInitChain[] = { static InitChainEntry sInitChain[] = {
@ -378,3 +379,7 @@ void BgHakaGate_Draw(Actor* thisx, GlobalContext* globalCtx) {
BgHakaGate_DrawFlame(this, globalCtx); BgHakaGate_DrawFlame(this, globalCtx);
} }
} }
void BgHakaGate_Reset(void) {
sStatueRotY = 0;
}