diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-07-08 16:26:23 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-07-09 16:01:07 +0200 |
commit | 67a3c7d2ee2787b254099bf22a9c261146ce5eed (patch) | |
tree | 70124341489b7293a9d4eccfe2d74df263ab5e3e /src/control/CarAI.cpp | |
parent | Merge pull request #652 from Domiiniik/miami (diff) | |
download | re3-67a3c7d2ee2787b254099bf22a9c261146ce5eed.tar re3-67a3c7d2ee2787b254099bf22a9c261146ce5eed.tar.gz re3-67a3c7d2ee2787b254099bf22a9c261146ce5eed.tar.bz2 re3-67a3c7d2ee2787b254099bf22a9c261146ce5eed.tar.lz re3-67a3c7d2ee2787b254099bf22a9c261146ce5eed.tar.xz re3-67a3c7d2ee2787b254099bf22a9c261146ce5eed.tar.zst re3-67a3c7d2ee2787b254099bf22a9c261146ce5eed.zip |
Diffstat (limited to '')
-rw-r--r-- | src/control/CarAI.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/control/CarAI.cpp b/src/control/CarAI.cpp index 7e517a83..a3fcbf9a 100644 --- a/src/control/CarAI.cpp +++ b/src/control/CarAI.cpp @@ -80,7 +80,7 @@ void CCarAI::UpdateCarAI(CVehicle* pVehicle) if (FindSwitchDistanceClose(pVehicle) > (FindPlayerCoors() - pVehicle->GetPosition()).Magnitude2D() || pVehicle->AutoPilot.m_bIgnorePathfinding) { pVehicle->AutoPilot.m_nCarMission = MISSION_RAMPLAYER_CLOSE; - if (pVehicle->UsesSiren(pVehicle->GetModelIndex())) + if (pVehicle->UsesSiren()) pVehicle->m_bSirenOrAlarm = true; } BackToCruisingIfNoWantedLevel(pVehicle); @@ -136,7 +136,7 @@ void CCarAI::UpdateCarAI(CVehicle* pVehicle) if (FindSwitchDistanceClose(pVehicle) > (FindPlayerCoors() - pVehicle->GetPosition()).Magnitude2D() || pVehicle->AutoPilot.m_bIgnorePathfinding) { pVehicle->AutoPilot.m_nCarMission = MISSION_BLOCKPLAYER_CLOSE; - if (pVehicle->UsesSiren(pVehicle->GetModelIndex())) + if (pVehicle->UsesSiren()) pVehicle->m_bSirenOrAlarm = true; } BackToCruisingIfNoWantedLevel(pVehicle); @@ -294,7 +294,7 @@ void CCarAI::UpdateCarAI(CVehicle* pVehicle) if ((pVehicle->AutoPilot.m_pTargetCar->GetPosition() - pVehicle->GetPosition()).Magnitude2D() < FindSwitchDistanceClose(pVehicle) || pVehicle->AutoPilot.m_bIgnorePathfinding){ pVehicle->AutoPilot.m_nCarMission = MISSION_BLOCKCAR_CLOSE; - if (pVehicle->UsesSiren(pVehicle->GetModelIndex())) + if (pVehicle->UsesSiren()) pVehicle->m_bSirenOrAlarm = true; } }else{ @@ -540,7 +540,7 @@ void CCarAI::AddPoliceCarOccupants(CVehicle* pVehicle) return; pVehicle->bOccupantsHaveBeenGenerated = true; switch (pVehicle->GetModelIndex()){ - case MI_FBICAR: + case MI_FBIRANCH: case MI_ENFORCER: pVehicle->SetUpDriver(); for (int i = 0; i < 3; i++) |