From 0b8edc21c03a719d8f7874bc20204612d6d1c107 Mon Sep 17 00:00:00 2001 From: Dragorn421 Date: Mon, 27 Dec 2021 19:24:41 +0100 Subject: [PATCH] `ACTOR_FLAG_11` -> `ACTOR_FLAG_ENKUSA_CUT` (#1065) --- include/z64actor.h | 2 +- src/overlays/actors/ovl_En_Kusa/z_en_kusa.c | 10 +++++----- src/overlays/actors/ovl_Obj_Mure/z_obj_mure.c | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/include/z64actor.h b/include/z64actor.h index fe0ffe20f0..a77945d273 100644 --- a/include/z64actor.h +++ b/include/z64actor.h @@ -110,7 +110,7 @@ typedef struct { #define ACTOR_FLAG_8 (1 << 8) #define ACTOR_FLAG_9 (1 << 9) #define ACTOR_FLAG_10 (1 << 10) -#define ACTOR_FLAG_11 (1 << 11) +#define ACTOR_FLAG_ENKUSA_CUT (1 << 11) #define ACTOR_FLAG_12 (1 << 12) #define ACTOR_FLAG_13 (1 << 13) #define ACTOR_FLAG_14 (1 << 14) diff --git a/src/overlays/actors/ovl_En_Kusa/z_en_kusa.c b/src/overlays/actors/ovl_En_Kusa/z_en_kusa.c index 1740548d5d..37411f2330 100644 --- a/src/overlays/actors/ovl_En_Kusa/z_en_kusa.c +++ b/src/overlays/actors/ovl_En_Kusa/z_en_kusa.c @@ -276,7 +276,7 @@ void EnKusa_SetupWaitObject(EnKusa* this) { void EnKusa_WaitObject(EnKusa* this, GlobalContext* globalCtx) { if (Object_IsLoaded(&globalCtx->objectCtx, this->objBankIndex)) { - if (this->actor.flags & ACTOR_FLAG_11) { + if (this->actor.flags & ACTOR_FLAG_ENKUSA_CUT) { EnKusa_SetupCut(this); } else { EnKusa_SetupMain(this); @@ -315,7 +315,7 @@ void EnKusa_Main(EnKusa* this, GlobalContext* globalCtx) { } EnKusa_SetupCut(this); - this->actor.flags |= ACTOR_FLAG_11; + this->actor.flags |= ACTOR_FLAG_ENKUSA_CUT; } else { if (!(this->collider.base.ocFlags1 & OC1_TYPE_PLAYER) && (this->actor.xzDistToPlayer > 12.0f)) { this->collider.base.ocFlags1 |= OC1_TYPE_PLAYER; @@ -460,7 +460,7 @@ void EnKusa_SetupRegrow(EnKusa* this) { EnKusa_SetupAction(this, EnKusa_Regrow); EnKusa_SetScaleSmall(this); this->actor.shape.rot = this->actor.home.rot; - this->actor.flags &= ~ACTOR_FLAG_11; + this->actor.flags &= ~ACTOR_FLAG_ENKUSA_CUT; } void EnKusa_Regrow(EnKusa* this, GlobalContext* globalCtx) { @@ -484,7 +484,7 @@ void EnKusa_Update(Actor* thisx, GlobalContext* globalCtx) { this->actionFunc(this, globalCtx); - if (this->actor.flags & ACTOR_FLAG_11) { + if (this->actor.flags & ACTOR_FLAG_ENKUSA_CUT) { this->actor.shape.yOffset = -6.25f; } else { this->actor.shape.yOffset = 0.0f; @@ -495,7 +495,7 @@ void EnKusa_Draw(Actor* thisx, GlobalContext* globalCtx) { static Gfx* dLists[] = { gFieldBushDL, object_kusa_DL_000140, object_kusa_DL_000140 }; EnKusa* this = (EnKusa*)thisx; - if (this->actor.flags & ACTOR_FLAG_11) { + if (this->actor.flags & ACTOR_FLAG_ENKUSA_CUT) { Gfx_DrawDListOpa(globalCtx, object_kusa_DL_0002E0); } else { Gfx_DrawDListOpa(globalCtx, dLists[thisx->params & 3]); diff --git a/src/overlays/actors/ovl_Obj_Mure/z_obj_mure.c b/src/overlays/actors/ovl_Obj_Mure/z_obj_mure.c index a7a370f5b4..c1cdcf4f11 100644 --- a/src/overlays/actors/ovl_Obj_Mure/z_obj_mure.c +++ b/src/overlays/actors/ovl_Obj_Mure/z_obj_mure.c @@ -154,7 +154,7 @@ void ObjMure_SpawnActors0(ObjMure* this, GlobalContext* globalCtx) { Actor_Spawn(ac, globalCtx, sSpawnActorIds[this->type], pos.x, pos.y, pos.z, this->actor.world.rot.x, this->actor.world.rot.y, this->actor.world.rot.z, sSpawnParams[this->type]); if (this->children[i] != NULL) { - this->children[i]->flags |= ACTOR_FLAG_11; + this->children[i]->flags |= ACTOR_FLAG_ENKUSA_CUT; this->children[i]->room = this->actor.room; } else { osSyncPrintf("warning 発生失敗 (%s %d)\n", "../z_obj_mure.c", 359); @@ -254,7 +254,7 @@ void ObjMure_CheckChildren(ObjMure* this, GlobalContext* globalCtx) { if (this->children[i] != NULL) { if (this->childrenStates[i] == OBJMURE_CHILD_STATE_0) { if (this->children[i]->update != NULL) { - if (this->children[i]->flags & ACTOR_FLAG_11) { + if (this->children[i]->flags & ACTOR_FLAG_ENKUSA_CUT) { this->childrenStates[i] = OBJMURE_CHILD_STATE_2; } } else {