summaryrefslogtreecommitdiffstats
path: root/src/control/Script.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-09 19:21:13 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-09 19:21:13 +0200
commita55e738dfad92ae7e23e45c3593384b9469f1177 (patch)
treee3714c0badf493db709cbf516cc7f9611f57e38f /src/control/Script.cpp
parentfix (diff)
downloadre3-a55e738dfad92ae7e23e45c3593384b9469f1177.tar
re3-a55e738dfad92ae7e23e45c3593384b9469f1177.tar.gz
re3-a55e738dfad92ae7e23e45c3593384b9469f1177.tar.bz2
re3-a55e738dfad92ae7e23e45c3593384b9469f1177.tar.lz
re3-a55e738dfad92ae7e23e45c3593384b9469f1177.tar.xz
re3-a55e738dfad92ae7e23e45c3593384b9469f1177.tar.zst
re3-a55e738dfad92ae7e23e45c3593384b9469f1177.zip
Diffstat (limited to '')
-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 b6729486..6e0923d7 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -9729,7 +9729,15 @@ int8 CRunningScript::ProcessCommands1100To1199(int32 command)
case COMMAND_IS_MODEL_AVAILABLE:
case COMMAND_SHUT_CHAR_UP:
case COMMAND_SET_ENABLE_RC_DETONATE:
+ assert(0);
case COMMAND_SET_CAR_RANDOM_ROUTE_SEED:
+ {
+ CollectParameters(&m_nIp, 2);
+ CVehicle* pVehicle = CPools::GetVehiclePool()->GetAt(ScriptParams[0]);
+ assert(pVehicle);
+ pVehicle->m_nRouteSeed = ScriptParams[1];
+ return 0;
+ }
case COMMAND_IS_ANY_PICKUP_AT_COORDS:
case COMMAND_GET_FIRST_PICKUP_COORDS:
case COMMAND_GET_NEXT_PICKUP_COORDS: