diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2021-08-20 19:38:24 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2021-08-20 19:39:27 +0200 |
commit | 8b7f469ae14545b75ea24fee474f5b2a4c6a9bdf (patch) | |
tree | 3ea9ead1eb69fc309b114b278da626cffeaf2ead /src/control | |
parent | small refactoring (diff) | |
download | re3-8b7f469ae14545b75ea24fee474f5b2a4c6a9bdf.tar re3-8b7f469ae14545b75ea24fee474f5b2a4c6a9bdf.tar.gz re3-8b7f469ae14545b75ea24fee474f5b2a4c6a9bdf.tar.bz2 re3-8b7f469ae14545b75ea24fee474f5b2a4c6a9bdf.tar.lz re3-8b7f469ae14545b75ea24fee474f5b2a4c6a9bdf.tar.xz re3-8b7f469ae14545b75ea24fee474f5b2a4c6a9bdf.tar.zst re3-8b7f469ae14545b75ea24fee474f5b2a4c6a9bdf.zip |
Diffstat (limited to 'src/control')
-rw-r--r-- | src/control/CarCtrl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/control/CarCtrl.cpp b/src/control/CarCtrl.cpp index df50f224..6742ccfe 100644 --- a/src/control/CarCtrl.cpp +++ b/src/control/CarCtrl.cpp @@ -1060,8 +1060,8 @@ CCarCtrl::UpdateCarOnRails(CVehicle* pVehicle) pVehicle->AutoPilot.ModifySpeed(0.0f); if (CTimer::GetTimeInMilliseconds() > pVehicle->AutoPilot.m_nTempAction){ pVehicle->AutoPilot.m_nTempAction = TEMPACT_NONE; - pVehicle->AutoPilot.m_nAntiReverseTimer = 0; - pVehicle->AutoPilot.m_nTimeToStartMission = 0; + pVehicle->AutoPilot.m_nAntiReverseTimer = CTimer::GetTimeInMilliseconds(); + pVehicle->AutoPilot.m_nTimeToStartMission = CTimer::GetTimeInMilliseconds(); } return; } |