summaryrefslogtreecommitdiffstats
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:38:24 +0200
commit7d5b1e6c2e19fb88f2adc57e9b4736886b0c299a (patch)
tree4fe1c310ec74ce959e2940d77b1cb3acbba369c6
parentsmall refactoring (diff)
downloadre3-7d5b1e6c2e19fb88f2adc57e9b4736886b0c299a.tar
re3-7d5b1e6c2e19fb88f2adc57e9b4736886b0c299a.tar.gz
re3-7d5b1e6c2e19fb88f2adc57e9b4736886b0c299a.tar.bz2
re3-7d5b1e6c2e19fb88f2adc57e9b4736886b0c299a.tar.lz
re3-7d5b1e6c2e19fb88f2adc57e9b4736886b0c299a.tar.xz
re3-7d5b1e6c2e19fb88f2adc57e9b4736886b0c299a.tar.zst
re3-7d5b1e6c2e19fb88f2adc57e9b4736886b0c299a.zip
-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 fe776a38..2085681a 100644
--- a/src/control/CarCtrl.cpp
+++ b/src/control/CarCtrl.cpp
@@ -810,8 +810,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;
}