summaryrefslogtreecommitdiffstats
path: root/src/control/CarCtrl.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2019-10-06 13:25:13 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2019-10-06 13:25:13 +0200
commit26f769103163e6c3c96be6e8bf1d905d21db3dd2 (patch)
tree812d7924c63008b1f8fe81def0187575232ea3cf /src/control/CarCtrl.cpp
parentCAutoPilot and CCurves (diff)
downloadre3-26f769103163e6c3c96be6e8bf1d905d21db3dd2.tar
re3-26f769103163e6c3c96be6e8bf1d905d21db3dd2.tar.gz
re3-26f769103163e6c3c96be6e8bf1d905d21db3dd2.tar.bz2
re3-26f769103163e6c3c96be6e8bf1d905d21db3dd2.tar.lz
re3-26f769103163e6c3c96be6e8bf1d905d21db3dd2.tar.xz
re3-26f769103163e6c3c96be6e8bf1d905d21db3dd2.tar.zst
re3-26f769103163e6c3c96be6e8bf1d905d21db3dd2.zip
Diffstat (limited to '')
-rw-r--r--src/control/CarCtrl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/CarCtrl.cpp b/src/control/CarCtrl.cpp
index 1d59c6c8..a6cbad5e 100644
--- a/src/control/CarCtrl.cpp
+++ b/src/control/CarCtrl.cpp
@@ -2404,7 +2404,7 @@ void CCarCtrl::SteerAICarWithPhysicsTryingToBlockTarget_Stop(CVehicle* pVehicle,
#ifdef FIX_BUGS
pVehicle->m_nTimeBlocked += CTimer::GetTimeStepInMilliseconds();
#else
- pVehicle->m_nTimeBlocked += 16.66f * CTimer::GetTimeStep(); // very doubtful constant
+ pVehicle->m_nTimeBlocked += 1000.0f / 60.0f * CTimer::GetTimeStep(); // very doubtful constant
#endif
else
pVehicle->m_nTimeBlocked = 0;