diff options
| author | Pieter-Jan Briers <pieterjan.briers+git@gmail.com> | 2026-06-20 03:26:56 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-19 18:26:56 -0700 |
| commit | 8d43c80c42f1a4c3835a2124ebeaf044c90e3839 (patch) | |
| tree | 8ee87394a9003a4ed4d8b0e19b501eff21d02c61 /src/d/actor/d_a_e_ym.cpp | |
| parent | fc1515fe6177e351b6e9c182979bcd57a1c9cd9f (diff) | |
Code cleanup to fix warnings in Dusklight (#3167)
Mostly bool/int mixing
Diffstat (limited to 'src/d/actor/d_a_e_ym.cpp')
| -rw-r--r-- | src/d/actor/d_a_e_ym.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/d/actor/d_a_e_ym.cpp b/src/d/actor/d_a_e_ym.cpp index fe4f12bcbd..90a68f7c1c 100644 --- a/src/d/actor/d_a_e_ym.cpp +++ b/src/d/actor/d_a_e_ym.cpp @@ -567,7 +567,7 @@ void daE_YM_c::setAppear() { } void daE_YM_c::setMoveSound(int param_0) { - if (mFlyType == 1) { + if (mFlyType == true) { if (checkBck("E_TM", 10) == 0) { return; } @@ -1016,7 +1016,7 @@ void daE_YM_c::executeDown() { field_0x6cf = 0; switch (mMode) { case 0: - if (mFlyType == 1) { + if (mFlyType == true) { bckSet(6, 0, 5.0f, 0.0f); } else { bckSet(0x10, 2, 5.0f, 1.0f); @@ -1065,7 +1065,7 @@ void daE_YM_c::executeDown() { cLib_addCalcAngleS(&shape_angle.x, -0x8000, 8, 0x1000, 0x10); } if (mAcch.ChkGroundHit()) { - if (mFlyType != 1) { + if (mFlyType != true) { bckSet(6, 0, 0.0f, 1.0f); } if (mMode == 1) { @@ -3319,7 +3319,7 @@ static int daE_YM_Delete(daE_YM_c* i_this) { } int daE_YM_c::CreateHeap() { - if (mFlyType == 1) { + if (mFlyType == true) { J3DModelData* modelData = (J3DModelData*)dComIfG_getObjectRes("E_TM", 0x11); JUT_ASSERT(0x1094, modelData != NULL); mpMorf = new mDoExt_McaMorfSO(modelData, NULL, NULL, (J3DAnmTransform*)dComIfG_getObjectRes("E_TM", 10), |
