summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-06-08 00:21:49 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-06-08 00:21:49 +0200
commit16a5c2f676dfb5ae6e3348594cb747372e116f80 (patch)
tree735ff7a554c9d27f83f7d45edc8e9de6a5148452
parentMerge remote-tracking branch 'upstream/miami' into miami (diff)
downloadre3-16a5c2f676dfb5ae6e3348594cb747372e116f80.tar
re3-16a5c2f676dfb5ae6e3348594cb747372e116f80.tar.gz
re3-16a5c2f676dfb5ae6e3348594cb747372e116f80.tar.bz2
re3-16a5c2f676dfb5ae6e3348594cb747372e116f80.tar.lz
re3-16a5c2f676dfb5ae6e3348594cb747372e116f80.tar.xz
re3-16a5c2f676dfb5ae6e3348594cb747372e116f80.tar.zst
re3-16a5c2f676dfb5ae6e3348594cb747372e116f80.zip
-rw-r--r--src/control/Script.cpp2
-rw-r--r--src/core/Stats.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp
index 4d784e4a..ff516136 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -2280,7 +2280,7 @@ int8 CRunningScript::ProcessCommands100To199(int32 command)
CCarCtrl::JoinCarWithRoadSystem(car);
car->AutoPilot.m_nCarMission = MISSION_CRUISE;
car->bEngineOn = true;
- car->AutoPilot.m_nCruiseSpeed = Max(car->AutoPilot.m_nCruiseSpeed, 6);
+ car->AutoPilot.m_nCruiseSpeed = Max(1, car->AutoPilot.m_nCruiseSpeed);
car->AutoPilot.m_nAntiReverseTimer = CTimer::GetTimeInMilliseconds();
return 0;
}
diff --git a/src/core/Stats.cpp b/src/core/Stats.cpp
index 5b590016..b8ea0943 100644
--- a/src/core/Stats.cpp
+++ b/src/core/Stats.cpp
@@ -4,6 +4,8 @@
#include "Text.h"
#include "World.h"
+#include <climits>
+
//TODO
int32 CStats::SeagullsKilled;