summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;