summaryrefslogtreecommitdiffstats
path: root/src/control/Script.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-10 12:31:21 +0200
committerGitHub <noreply@github.com>2020-05-10 12:31:21 +0200
commit058690aad74a69a13b5f1f421af9918c394ca0fb (patch)
tree1544037570bbdae6dd83b54f07931d3abf59bf3e /src/control/Script.cpp
parentCSimpleModelInfo (diff)
parentfix boats (diff)
downloadre3-058690aad74a69a13b5f1f421af9918c394ca0fb.tar
re3-058690aad74a69a13b5f1f421af9918c394ca0fb.tar.gz
re3-058690aad74a69a13b5f1f421af9918c394ca0fb.tar.bz2
re3-058690aad74a69a13b5f1f421af9918c394ca0fb.tar.lz
re3-058690aad74a69a13b5f1f421af9918c394ca0fb.tar.xz
re3-058690aad74a69a13b5f1f421af9918c394ca0fb.tar.zst
re3-058690aad74a69a13b5f1f421af9918c394ca0fb.zip
Diffstat (limited to 'src/control/Script.cpp')
-rw-r--r--src/control/Script.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp
index 307cb536..90bde151 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -9784,7 +9784,15 @@ int8 CRunningScript::ProcessCommands1200To1299(int32 command)
case COMMAND_SET_CAR_FORWARD_SPEED:
case COMMAND_SET_AREA_VISIBLE:
case COMMAND_SET_CUTSCENE_ANIM_TO_LOOP:
+ assert(0);
case COMMAND_MARK_CAR_AS_CONVOY_CAR:
+ {
+ CollectParameters(&m_nIp, 2);
+ CVehicle* pVehicle = CPools::GetVehiclePool()->GetAt(ScriptParams[0]);
+ assert(pVehicle);
+ pVehicle->bPartOfConvoy = ScriptParams[1];
+ return 0;
+ }
case COMMAND_RESET_HAVOC_CAUSED_BY_PLAYER:
case COMMAND_GET_HAVOC_CAUSED_BY_PLAYER:
case COMMAND_CREATE_SCRIPT_ROADBLOCK: