diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2019-08-11 19:11:54 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2019-08-11 19:11:54 +0200 |
commit | 14b945ba08bfa18d8ac61bb7f5c08b299ce8a2b0 (patch) | |
tree | 671d1b9f6f0a3b67449f8d41b28724fe890619b4 /src/control/Script.cpp | |
parent | Merge remote-tracking branch 'upstream/master' (diff) | |
download | re3-14b945ba08bfa18d8ac61bb7f5c08b299ce8a2b0.tar re3-14b945ba08bfa18d8ac61bb7f5c08b299ce8a2b0.tar.gz re3-14b945ba08bfa18d8ac61bb7f5c08b299ce8a2b0.tar.bz2 re3-14b945ba08bfa18d8ac61bb7f5c08b299ce8a2b0.tar.lz re3-14b945ba08bfa18d8ac61bb7f5c08b299ce8a2b0.tar.xz re3-14b945ba08bfa18d8ac61bb7f5c08b299ce8a2b0.tar.zst re3-14b945ba08bfa18d8ac61bb7f5c08b299ce8a2b0.zip |
Diffstat (limited to 'src/control/Script.cpp')
-rw-r--r-- | src/control/Script.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp index 408771d1..c3c3a154 100644 --- a/src/control/Script.cpp +++ b/src/control/Script.cpp @@ -1924,7 +1924,7 @@ int8 CRunningScript::ProcessCommandsFrom100To199(int32 command) boat->m_status = STATUS_ABANDONED; boat->bIsLocked = true; boat->AutoPilot.m_nCarMission = MISSION_NONE; - boat->AutoPilot.m_nAnimationId = TEMPACT_NONE; /* Animation ID? */ + boat->AutoPilot.m_nTempAction = TEMPACT_NONE; /* Animation ID? */ boat->AutoPilot.m_nCruiseSpeed = boat->AutoPilot.m_fMaxTrafficSpeed = 20.0f; CWorld::Add(boat); handle = CPools::GetVehiclePool()->GetIndex(boat); @@ -1943,10 +1943,10 @@ int8 CRunningScript::ProcessCommandsFrom100To199(int32 command) car->bIsLocked = true; CCarCtrl::JoinCarWithRoadSystem(car); car->AutoPilot.m_nCarMission = MISSION_NONE; - car->AutoPilot.m_nAnimationId = TEMPACT_NONE; /* Animation ID? */ + car->AutoPilot.m_nTempAction = TEMPACT_NONE; /* Animation ID? */ car->AutoPilot.m_nDrivingStyle = DRIVINGSTYLE_STOP_FOR_CARS; car->AutoPilot.m_nCruiseSpeed = car->AutoPilot.m_fMaxTrafficSpeed = 9.0f; - car->AutoPilot.m_nPreviousLane = car->AutoPilot.m_nCurrentLane = 0; + car->AutoPilot.m_nCurrentLane = car->AutoPilot.m_nNextLane = 0; car->bEngineOn = false; car->m_level = CTheZones::GetLevelFromPosition(pos); car->bHasBeenOwnedByPlayer = true; |