summaryrefslogtreecommitdiffstats
path: root/src/control/CarCtrl.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-08-20 19:38:24 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2021-08-20 19:40:40 +0200
commitfe1e1ec8c76a020fb8ba78f7fc75b5018a628ed5 (patch)
tree9ac1cd00ed56579fa99d37302f15404b91df9b70 /src/control/CarCtrl.cpp
parentsmall refactoring (diff)
downloadre3-fe1e1ec8c76a020fb8ba78f7fc75b5018a628ed5.tar
re3-fe1e1ec8c76a020fb8ba78f7fc75b5018a628ed5.tar.gz
re3-fe1e1ec8c76a020fb8ba78f7fc75b5018a628ed5.tar.bz2
re3-fe1e1ec8c76a020fb8ba78f7fc75b5018a628ed5.tar.lz
re3-fe1e1ec8c76a020fb8ba78f7fc75b5018a628ed5.tar.xz
re3-fe1e1ec8c76a020fb8ba78f7fc75b5018a628ed5.tar.zst
re3-fe1e1ec8c76a020fb8ba78f7fc75b5018a628ed5.zip
Diffstat (limited to 'src/control/CarCtrl.cpp')
-rw-r--r--src/control/CarCtrl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/control/CarCtrl.cpp b/src/control/CarCtrl.cpp
index c65ec71f..cd116f11 100644
--- a/src/control/CarCtrl.cpp
+++ b/src/control/CarCtrl.cpp
@@ -1134,8 +1134,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;
}