summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-04-24 00:32:17 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-04-24 00:32:17 +0200
commit0fc505926fe40c4366dbb5fe365b4ea7d2381ddf (patch)
treee05b8d57bb350aaba5fcefab7f06963582d3ada3 /src
parentmore 1.1 patch (diff)
downloadre3-0fc505926fe40c4366dbb5fe365b4ea7d2381ddf.tar
re3-0fc505926fe40c4366dbb5fe365b4ea7d2381ddf.tar.gz
re3-0fc505926fe40c4366dbb5fe365b4ea7d2381ddf.tar.bz2
re3-0fc505926fe40c4366dbb5fe365b4ea7d2381ddf.tar.lz
re3-0fc505926fe40c4366dbb5fe365b4ea7d2381ddf.tar.xz
re3-0fc505926fe40c4366dbb5fe365b4ea7d2381ddf.tar.zst
re3-0fc505926fe40c4366dbb5fe365b4ea7d2381ddf.zip
Diffstat (limited to 'src')
-rw-r--r--src/control/CarCtrl.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/control/CarCtrl.cpp b/src/control/CarCtrl.cpp
index ae38b68f..f347b2c9 100644
--- a/src/control/CarCtrl.cpp
+++ b/src/control/CarCtrl.cpp
@@ -1868,6 +1868,9 @@ void CCarCtrl::Init(void)
NumFiretrucksOnDuty = 0;
LastTimeFireTruckCreated = 0;
LastTimeAmbulanceCreated = 0;
+#ifdef FIX_BUGS
+ LastTimeLawEnforcerCreated = 0;
+#endif
bCarsGeneratedAroundCamera = false;
CountDownToCarsAtStart = 2;
CarDensityMultiplier = 1.0f;
@@ -1890,6 +1893,11 @@ void CCarCtrl::ReInit(void)
NumPermanentCars = 0;
NumAmbulancesOnDuty = 0;
NumFiretrucksOnDuty = 0;
+#ifdef FIX_BUGS
+ LastTimeFireTruckCreated = 0;
+ LastTimeAmbulanceCreated = 0;
+ LastTimeLawEnforcerCreated = 0;
+#endif
CountDownToCarsAtStart = 2;
CarDensityMultiplier = 1.0f;
for (int i = 0; i < MAX_CARS_TO_KEEP; i++)