summaryrefslogtreecommitdiff
path: root/src/d/actor/d_a_bita.cpp
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2025-01-11 17:20:45 -0500
committerLagoLunatic <LagoLunatic@users.noreply.github.com>2025-01-11 17:20:45 -0500
commitca6bebcb4b14fa7b9c3bb1ba5a15f592c8dde92e (patch)
tree03e34b3d39262d1a6ae0faebc6ccc0cfde89847b /src/d/actor/d_a_bita.cpp
parent3816b8d8f0d8dc33f8fd77d2f9c02b45558dbb93 (diff)
Add more actor mode enums
Diffstat (limited to 'src/d/actor/d_a_bita.cpp')
-rw-r--r--src/d/actor/d_a_bita.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/d/actor/d_a_bita.cpp b/src/d/actor/d_a_bita.cpp
index 7c0305a8..d3c4c3d5 100644
--- a/src/d/actor/d_a_bita.cpp
+++ b/src/d/actor/d_a_bita.cpp
@@ -34,7 +34,7 @@ static void* b_a_sub(void* search, void* user) {
/* 000000C4-0000018C .text daBita_Draw__FP10bita_class */
static BOOL daBita_Draw(bita_class* i_this) {
dKy_getEnvlight().settingTevStruct(TEV_TYPE_BG0, &i_this->current.pos, &i_this->tevStr);
- if (i_this->mMode == 1 && i_this->mSub == 1) {
+ if (i_this->mMode == bita_class::MODE_DEAD && i_this->mSub == 1) {
dKy_getEnvlight().setLightTevColorType(i_this->mpModelEf, &i_this->tevStr);
i_this->mpBrkAnm->entry(i_this->mpModelEf->getModelData());
mDoExt_modelUpdateDL(i_this->mpModelEf);
@@ -56,7 +56,7 @@ static void mode_normal(bita_class* i_this) {
}
} else {
if (i_this->mCyl.ChkTgHit() && i_this->mCyl.GetTgHitObj()->GetAtType() == AT_TYPE_FIRE) {
- i_this->mMode = 1;
+ i_this->mMode = bita_class::MODE_DEAD;
i_this->mSub = 0;
}
}
@@ -101,7 +101,7 @@ static void base_mtx_set(bita_class* i_this) {
MtxTrans(i_this->current.pos.x, i_this->current.pos.y, i_this->current.pos.z, false);
cMtx_YrotM(*calc_mtx, i_this->shape_angle.y);
cMtx_XrotM(*calc_mtx, i_this->shape_angle.x);
- if (i_this->mMode == 1 && i_this->mSub >= 1) {
+ if (i_this->mMode == bita_class::MODE_DEAD && i_this->mSub >= 1) {
i_this->mpModelEf->setBaseTRMtx(*calc_mtx);
if (i_this->mTimer < 60)
i_this->mpBrkAnm->play();
@@ -120,10 +120,10 @@ static BOOL daBita_Execute(bita_class* i_this) {
fopAcM_OffStatus(i_this, fopAcStts_UNK4000_e);
switch (i_this->mMode) {
- case 0:
+ case bita_class::MODE_NORMAL:
mode_normal(i_this);
break;
- case 1:
+ case bita_class::MODE_DEAD:
mode_dead(i_this);
break;
}
@@ -132,7 +132,7 @@ static BOOL daBita_Execute(bita_class* i_this) {
cMtx_copy(*calc_mtx, i_this->mMtx);
i_this->mpBgW->Move();
- if (btd != NULL && i_this->mMode == 0) {
+ if (btd != NULL && i_this->mMode == bita_class::MODE_NORMAL) {
cMtx_YrotS(*calc_mtx, i_this->shape_angle.y);
cMtx_XrotM(*calc_mtx, i_this->shape_angle.x);
cXyz offs(0.0f, -80.0f, 160.0f);