summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2019-07-18 12:23:50 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2019-07-18 12:23:50 +0200
commit0f160d110ff0ae9a10aef401ab0b743f241745a8 (patch)
tree7315dd5781a6c0f35b4cbab8de1fc89cfb50aa57 /src/control
parentmore CAutomobile::ProcessControl (diff)
downloadre3-0f160d110ff0ae9a10aef401ab0b743f241745a8.tar
re3-0f160d110ff0ae9a10aef401ab0b743f241745a8.tar.gz
re3-0f160d110ff0ae9a10aef401ab0b743f241745a8.tar.bz2
re3-0f160d110ff0ae9a10aef401ab0b743f241745a8.tar.lz
re3-0f160d110ff0ae9a10aef401ab0b743f241745a8.tar.xz
re3-0f160d110ff0ae9a10aef401ab0b743f241745a8.tar.zst
re3-0f160d110ff0ae9a10aef401ab0b743f241745a8.zip
Diffstat (limited to 'src/control')
-rw-r--r--src/control/Script.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp
index 85e27956..d9c32e7a 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -1909,6 +1909,7 @@ int8 CRunningScript::ProcessCommandsFrom100To199(int32 command)
CTheScripts::ClearSpaceForMissionEntity(pos, car);
car->m_status = STATUS_ABANDONED;
car->bIsLocked = true;
+ CCarCtrl::JoinCarWithRoadSystem(car);
car->AutoPilot.m_nCarMission = MISSION_NONE;
car->AutoPilot.m_nAnimationId = TEMPACT_NONE; /* Animation ID? */
car->AutoPilot.m_nDrivingStyle = DRIVINGSTYLE_STOP_FOR_CARS;