func_80AB4080 OK

This commit is contained in:
tom-overton 2021-11-01 23:23:15 -07:00
parent b66c7b13e2
commit 6934a744ab
1 changed files with 22 additions and 1 deletions

View File

@ -397,7 +397,28 @@ void func_80AB4040(ObjTokeidai* this, GlobalContext* globalCtx) {
func_80AB3CCC(this, globalCtx);
}
#pragma GLOBAL_ASM("asm/non_matchings/overlays/ovl_Obj_Tokeidai/func_80AB4080.s")
void func_80AB4080(ObjTokeidai* this, GlobalContext* globalCtx) {
if (func_80AB3C50(this, globalCtx)) {
this->actor.draw = func_80AB4894;
} else {
if (globalCtx->csCtx.state != 0) {
this->actor.home.rot.x = 1;
this->unk_170 += 3;
this->actor.draw = func_80AB4894;
} else {
if ((globalCtx->actorCtx.unk5 & 2) == 0 && OBJ_TOKEIDAI_TYPE(&this->actor) == 4 &&
ActorCutscene_GetCurrentIndex() == -1) {
this->actor.draw = NULL;
}
this->unk_170 = gSaveContext.time;
if (this->actor.home.rot.x != 0) {
func_80AB27B4(this);
this->actor.home.rot.x = 0;
}
}
func_80AB3010(this, 0);
}
}
#pragma GLOBAL_ASM("asm/non_matchings/overlays/ovl_Obj_Tokeidai/func_80AB4160.s")