diff options
author | aap <aap@papnet.eu> | 2020-05-09 12:45:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-09 12:45:25 +0200 |
commit | 40cfd0576fcbc05ee63262d5c41a3151b09a806b (patch) | |
tree | 93f989fb6dfc2b0244d8a38c94c8c5d15e5e9f25 /src/control/CarAI.cpp | |
parent | Merge branch 'master' into miami (diff) | |
parent | fix (diff) | |
download | re3-40cfd0576fcbc05ee63262d5c41a3151b09a806b.tar re3-40cfd0576fcbc05ee63262d5c41a3151b09a806b.tar.gz re3-40cfd0576fcbc05ee63262d5c41a3151b09a806b.tar.bz2 re3-40cfd0576fcbc05ee63262d5c41a3151b09a806b.tar.lz re3-40cfd0576fcbc05ee63262d5c41a3151b09a806b.tar.xz re3-40cfd0576fcbc05ee63262d5c41a3151b09a806b.tar.zst re3-40cfd0576fcbc05ee63262d5c41a3151b09a806b.zip |
Diffstat (limited to 'src/control/CarAI.cpp')
-rw-r--r-- | src/control/CarAI.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/control/CarAI.cpp b/src/control/CarAI.cpp index 0330d80d..c233178f 100644 --- a/src/control/CarAI.cpp +++ b/src/control/CarAI.cpp @@ -13,6 +13,7 @@ #include "DMAudio.h" #include "Fire.h" #include "Pools.h" +#include "Population.h" #include "Timer.h" #include "TrafficLights.h" #include "Vehicle.h" @@ -560,18 +561,15 @@ void CCarAI::AddPoliceCarOccupants(CVehicle* pVehicle) case MI_PREDATOR: pVehicle->SetUpDriver(); return; -//TODO(MIAMI) uncomment this when we have MI_VICECHEE -/* case MI_VICECHEE: { - pVehicle->SetUpDriver()->bIsMiamiViceCop = true; - pVehicle->SetUpPassenger(0)->bIsMiamiViceCop = true; + pVehicle->SetUpDriver()->bMiamiViceCop = true; + pVehicle->SetupPassenger(0)->bMiamiViceCop = true; CPopulation::NumMiamiViceCops += 2; CCarCtrl::MiamiViceCycle = (CCarCtrl::MiamiViceCycle + 1) % 4; CCarCtrl::LastTimeMiamiViceGenerated = CTimer::GetTimeInMilliseconds(); return; } -*/ default: return; } |