summaryrefslogtreecommitdiffstats
path: root/src/control/Script.cpp
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2020-12-09 01:31:03 +0100
committerGitHub <noreply@github.com>2020-12-09 01:31:03 +0100
commitac3484b82e0bd286ddd1e56fb566303d7a3ca40d (patch)
treef6c95cfd85cb2261f010983f01fd6d62a6de5ef1 /src/control/Script.cpp
parentfix CObject::DeleteAllTempObjectsInArea (diff)
parentuint8 enums fixed (diff)
downloadre3-ac3484b82e0bd286ddd1e56fb566303d7a3ca40d.tar
re3-ac3484b82e0bd286ddd1e56fb566303d7a3ca40d.tar.gz
re3-ac3484b82e0bd286ddd1e56fb566303d7a3ca40d.tar.bz2
re3-ac3484b82e0bd286ddd1e56fb566303d7a3ca40d.tar.lz
re3-ac3484b82e0bd286ddd1e56fb566303d7a3ca40d.tar.xz
re3-ac3484b82e0bd286ddd1e56fb566303d7a3ca40d.tar.zst
re3-ac3484b82e0bd286ddd1e56fb566303d7a3ca40d.zip
Diffstat (limited to 'src/control/Script.cpp')
-rw-r--r--src/control/Script.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp
index be0e9bf0..ff72d664 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -4038,7 +4038,7 @@ int8 CRunningScript::ProcessCommands100To199(int32 command)
CollectParameters(&m_nIp, 2);
CVehicle* car = CPools::GetVehiclePool()->GetAt(ScriptParams[0]);
script_assert(car);
- car->AutoPilot.m_nDrivingStyle = (eCarDrivingStyle)ScriptParams[1];
+ car->AutoPilot.m_nDrivingStyle = (uint8)ScriptParams[1];
return 0;
}
case COMMAND_SET_CAR_MISSION:
@@ -4046,7 +4046,7 @@ int8 CRunningScript::ProcessCommands100To199(int32 command)
CollectParameters(&m_nIp, 2);
CVehicle* car = CPools::GetVehiclePool()->GetAt(ScriptParams[0]);
script_assert(car);
- car->AutoPilot.m_nCarMission = (eCarMission)ScriptParams[1];
+ car->AutoPilot.m_nCarMission = (uint8)ScriptParams[1];
car->AutoPilot.m_nAntiReverseTimer = CTimer::GetTimeInMilliseconds();
car->bEngineOn = true;
return 0;