From 16a5c2f676dfb5ae6e3348594cb747372e116f80 Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Mon, 8 Jun 2020 01:21:49 +0300 Subject: [PATCH] fixes --- src/control/Script.cpp | 2 +- src/core/Stats.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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 + //TODO int32 CStats::SeagullsKilled;