summaryrefslogtreecommitdiffstats
path: root/src/control/CarAI.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-09 12:45:25 +0200
committerGitHub <noreply@github.com>2020-05-09 12:45:25 +0200
commit40cfd0576fcbc05ee63262d5c41a3151b09a806b (patch)
tree93f989fb6dfc2b0244d8a38c94c8c5d15e5e9f25 /src/control/CarAI.cpp
parentMerge branch 'master' into miami (diff)
parentfix (diff)
downloadre3-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 '')
-rw-r--r--src/control/CarAI.cpp8
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;
}