summaryrefslogtreecommitdiffstats
path: root/src/control/CarCtrl.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-05 19:22:13 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-05 19:22:13 +0200
commit918d6dbf56c78f75ea74cc0f8fbca92dc55bcd86 (patch)
tree22572d094b688402dc4039171a083b39049a82c4 /src/control/CarCtrl.cpp
parentskipped one def (diff)
downloadre3-918d6dbf56c78f75ea74cc0f8fbca92dc55bcd86.tar
re3-918d6dbf56c78f75ea74cc0f8fbca92dc55bcd86.tar.gz
re3-918d6dbf56c78f75ea74cc0f8fbca92dc55bcd86.tar.bz2
re3-918d6dbf56c78f75ea74cc0f8fbca92dc55bcd86.tar.lz
re3-918d6dbf56c78f75ea74cc0f8fbca92dc55bcd86.tar.xz
re3-918d6dbf56c78f75ea74cc0f8fbca92dc55bcd86.tar.zst
re3-918d6dbf56c78f75ea74cc0f8fbca92dc55bcd86.zip
Diffstat (limited to '')
-rw-r--r--src/control/CarCtrl.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/control/CarCtrl.cpp b/src/control/CarCtrl.cpp
index f0f95941..39285296 100644
--- a/src/control/CarCtrl.cpp
+++ b/src/control/CarCtrl.cpp
@@ -90,14 +90,16 @@ uint32 aCarsToKeepTime[MAX_CARS_TO_KEEP];
void
CCarCtrl::GenerateRandomCars()
{
- if (CCutsceneMgr::IsRunning())
+ if (CCutsceneMgr::IsRunning()) {
+ CountDownToCarsAtStart = 2;
return;
+ }
if (NumRandomCars < 30){
if (CountDownToCarsAtStart == 0){
GenerateOneRandomCar();
}
else if (--CountDownToCarsAtStart == 0) {
- for (int i = 0; i < 50; i++)
+ for (int i = 0; i < 100; i++)
GenerateOneRandomCar();
CTheCarGenerators::GenerateEvenIfPlayerIsCloseCounter = 20;
}