Skip to content

Commit

Permalink
Remove redundant part of 'Sanitizer fixes 2'
Browse files Browse the repository at this point in the history
  • Loading branch information
erorcun committed Jul 2, 2021
1 parent a8549e8 commit 51042e1
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/peds/Ped.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down Expand Up @@ -6173,8 +6167,6 @@ CPed::SetEvasiveStep(CPhysical *reason, uint8 animType)
SetPedState(PED_STEP_AWAY);
}
}

#undef IS_RCBANDIT
}

void
Expand Down

0 comments on commit 51042e1

Please sign in to comment.