summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-07-18 12:25:44 +0200
committerGitHub <noreply@github.com>2019-07-18 12:25:44 +0200
commit6b09eb87926a029fadd9a42d15e6259394f7755e (patch)
tree7315dd5781a6c0f35b4cbab8de1fc89cfb50aa57
parentmore CAutomobile::ProcessControl (diff)
parentfixed car AI bug (diff)
downloadre3-6b09eb87926a029fadd9a42d15e6259394f7755e.tar
re3-6b09eb87926a029fadd9a42d15e6259394f7755e.tar.gz
re3-6b09eb87926a029fadd9a42d15e6259394f7755e.tar.bz2
re3-6b09eb87926a029fadd9a42d15e6259394f7755e.tar.lz
re3-6b09eb87926a029fadd9a42d15e6259394f7755e.tar.xz
re3-6b09eb87926a029fadd9a42d15e6259394f7755e.tar.zst
re3-6b09eb87926a029fadd9a42d15e6259394f7755e.zip
Diffstat (limited to '')
-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;