summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-05 18:07:28 +0200
committerGitHub <noreply@github.com>2020-05-05 18:07:28 +0200
commit3e18b92ccce6001056acb36ad0958e95fee3fc96 (patch)
tree9d896e3d7f0af6ae658d466b7cc93b81b25e71c6
parentRevert "Remove GTA_TRAIN, GTA_BRIDGE, GTA_ZONECULL" (diff)
parentskipped one def (diff)
downloadre3-3e18b92ccce6001056acb36ad0958e95fee3fc96.tar
re3-3e18b92ccce6001056acb36ad0958e95fee3fc96.tar.gz
re3-3e18b92ccce6001056acb36ad0958e95fee3fc96.tar.bz2
re3-3e18b92ccce6001056acb36ad0958e95fee3fc96.tar.lz
re3-3e18b92ccce6001056acb36ad0958e95fee3fc96.tar.xz
re3-3e18b92ccce6001056acb36ad0958e95fee3fc96.tar.zst
re3-3e18b92ccce6001056acb36ad0958e95fee3fc96.zip
-rw-r--r--src/control/CarAI.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/control/CarAI.cpp b/src/control/CarAI.cpp
index 465b0b33..571a62d2 100644
--- a/src/control/CarAI.cpp
+++ b/src/control/CarAI.cpp
@@ -85,19 +85,7 @@ void CCarAI::UpdateCarAI(CVehicle* pVehicle)
if (pVehicle->UsesSiren(pVehicle->GetModelIndex()))
pVehicle->m_bSirenOrAlarm = true;
}
-#ifndef MIAMI
- if (FindPlayerPed()->m_pWanted->m_bIgnoredByEveryone || pVehicle->bIsLawEnforcer &&
- (FindPlayerPed()->m_pWanted->m_nWantedLevel == 0 || FindPlayerPed()->m_pWanted->m_bIgnoredByCops || CCullZones::NoPolice())) {
- CCarCtrl::JoinCarWithRoadSystem(pVehicle);
- pVehicle->AutoPilot.m_nCarMission = MISSION_CRUISE;
- pVehicle->AutoPilot.m_nDrivingStyle = DRIVINGSTYLE_STOP_FOR_CARS;
- pVehicle->m_bSirenOrAlarm = false;
- if (CCullZones::NoPolice())
- pVehicle->AutoPilot.m_nCarMission = MISSION_NONE;
- }
-#else
BackToCruisingIfNoWantedLevel(pVehicle);
-#endif
break;
case MISSION_RAMPLAYER_CLOSE:
if (FindSwitchDistanceFar(pVehicle) >= (FindPlayerCoors() - pVehicle->GetPosition()).Magnitude2D() ||