diff options
author | erorcun <erorcunerorcun@hotmail.com.tr> | 2021-07-03 00:53:43 +0200 |
---|---|---|
committer | erorcun <erorcunerorcun@hotmail.com.tr> | 2021-07-03 00:53:43 +0200 |
commit | 51042e15aa2698b2342ecb9b113e05624f5d71c9 (patch) | |
tree | 0c8069d29e7def8e3b747a907e53335df57150d9 /src/peds/Ped.cpp | |
parent | Sanitizer fixes 2 (diff) | |
download | re3-51042e15aa2698b2342ecb9b113e05624f5d71c9.tar re3-51042e15aa2698b2342ecb9b113e05624f5d71c9.tar.gz re3-51042e15aa2698b2342ecb9b113e05624f5d71c9.tar.bz2 re3-51042e15aa2698b2342ecb9b113e05624f5d71c9.tar.lz re3-51042e15aa2698b2342ecb9b113e05624f5d71c9.tar.xz re3-51042e15aa2698b2342ecb9b113e05624f5d71c9.tar.zst re3-51042e15aa2698b2342ecb9b113e05624f5d71c9.zip |
Diffstat (limited to '')
-rw-r--r-- | src/peds/Ped.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp index bde6f8d7..4d80cac2 100644 --- a/src/peds/Ped.cpp +++ b/src/peds/Ped.cpp @@ -6121,15 +6121,9 @@ CPed::SetEvasiveStep(CPhysical *reason, uint8 animType) } } -#ifdef FIX_BUGS - #define IS_RCBANDIT (reason->IsVehicle() && reason->GetModelIndex() == MI_RCBANDIT) -#else - #define IS_RCBANDIT (reason->GetModelIndex() == MI_RCBANDIT) -#endif - - if (neededTurn <= DEGTORAD(90.0f) || IS_RCBANDIT || vehPressedHorn || animType != 0) { + if (neededTurn <= DEGTORAD(90.0f) || reason->GetModelIndex() == MI_RCBANDIT || vehPressedHorn || animType != 0) { SetLookFlag(reason, true); - if ((CGeneral::GetRandomNumber() & 1) && !IS_RCBANDIT && animType == 0) { + if ((CGeneral::GetRandomNumber() & 1) && reason->GetModelIndex() != MI_RCBANDIT && animType == 0) { stepAnim = ANIM_STD_HAILTAXI; } else { @@ -6173,8 +6167,6 @@ CPed::SetEvasiveStep(CPhysical *reason, uint8 animType) SetPedState(PED_STEP_AWAY); } } - -#undef IS_RCBANDIT } void |