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_npc_toby.cpp | |
| parent | fc1515fe6177e351b6e9c182979bcd57a1c9cd9f (diff) | |
Code cleanup to fix warnings in Dusklight (#3167)
Mostly bool/int mixing
Diffstat (limited to 'src/d/actor/d_a_npc_toby.cpp')
| -rw-r--r-- | src/d/actor/d_a_npc_toby.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/d/actor/d_a_npc_toby.cpp b/src/d/actor/d_a_npc_toby.cpp index db423a1d13..88682cf935 100644 --- a/src/d/actor/d_a_npc_toby.cpp +++ b/src/d/actor/d_a_npc_toby.cpp @@ -350,7 +350,7 @@ int daNpc_Toby_c::CreateHeap() { J3DModelData* modelData = NULL; J3DModel* model = NULL; - int bmdIdx = mTwilight == true ? TRUE : FALSE; + int bmdIdx = mTwilight == TRUE ? TRUE : FALSE; int res_name_idx = l_bmdData[bmdIdx][1]; int my_bmd = l_bmdData[bmdIdx][0]; modelData = static_cast<J3DModelData*>(dComIfG_getObjectRes(l_resNameList[res_name_idx], my_bmd)); @@ -1878,7 +1878,7 @@ int daNpc_Toby_c::wait(void*) { } } - if (mTwilight == false && mHide == 0 && daPy_py_c::checkNowWolf()) { + if (mTwilight == FALSE && mHide == 0 && daPy_py_c::checkNowWolf()) { cXyz att_pos = getAttnPos(daPy_getPlayerActorClass()); if (field_0x1000) { if (chkPointInArea(att_pos, attention_info.position, @@ -1918,7 +1918,7 @@ int daNpc_Toby_c::wait(void*) { mPlayerActorMngr.remove(); } - if (mPlayerActorMngr.getActorP() != NULL && mTwilight == false) { + if (mPlayerActorMngr.getActorP() != NULL && mTwilight == FALSE) { int reg_r28 = 1; mJntAnm.lookPlayer(0); if (chkActorInSight(mPlayerActorMngr.getActorP(), mAttnFovY, mCurAngle.y) == FALSE) { |
