Add reset functions to some great bay temple things (#387)

This commit is contained in:
Garrett Cox 2024-05-13 22:49:00 -05:00
parent 2bdce2e1e5
commit 0775c6e291
2 changed files with 16 additions and 0 deletions

View File

@ -17,6 +17,7 @@ void BgDblueMovebg_Init(Actor* thisx, PlayState* play);
void BgDblueMovebg_Destroy(Actor* thisx, PlayState* play);
void BgDblueMovebg_Update(Actor* thisx, PlayState* play);
void BgDblueMovebg_Draw(Actor* thisx, PlayState* play2);
void BgDblueMovebg_Reset(void);
void func_80A2A1E0(BgDblueMovebg* this, PlayState* play);
void func_80A2A32C(BgDblueMovebg* this, PlayState* play);
@ -55,6 +56,7 @@ ActorInit Bg_Dblue_Movebg_InitVars = {
/**/ BgDblueMovebg_Destroy,
/**/ BgDblueMovebg_Update,
/**/ BgDblueMovebg_Draw,
/**/ BgDblueMovebg_Reset,
};
static Gfx* sOpaDLists[] = {
@ -863,3 +865,9 @@ void BgDblueMovebg_Draw(Actor* thisx, PlayState* play2) {
}
}
}
void BgDblueMovebg_Reset(void) {
D_80A2BBF0 = NULL;
D_80A2BBF4.unk_00 = 0;
D_80A2BBF4.unk_01 = 0;
}

View File

@ -15,6 +15,7 @@ void ObjHunsui_Init(Actor* thisx, PlayState* play);
void ObjHunsui_Destroy(Actor* thisx, PlayState* play);
void ObjHunsui_Update(Actor* thisx, PlayState* play);
void ObjHunsui_Draw(Actor* thisx, PlayState* play);
void ObjHunsui_Reset(void);
void func_80B9CE64(ObjHunsui* this, PlayState* play);
void func_80B9D0FC(ObjHunsui* this, PlayState* play);
@ -56,6 +57,7 @@ ActorInit Obj_Hunsui_InitVars = {
/**/ ObjHunsui_Destroy,
/**/ ObjHunsui_Update,
/**/ ObjHunsui_Draw,
/**/ ObjHunsui_Reset,
};
static InitChainEntry sInitChain[] = {
@ -681,3 +683,9 @@ void func_80B9DA60(Actor* thisx, PlayState* play) {
CLOSE_DISPS(play->state.gfxCtx);
}
}
void ObjHunsui_Reset(void) {
D_80B9DED8.unk_00 = 0;
D_80B9DED8.unk_01 = 0;
D_80B9DED8.unk_02 = 0;
}