summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Automobile.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-18 16:55:38 +0200
committeraap <aap@papnet.eu>2020-05-18 16:55:38 +0200
commit2588e69849c3a0e4d8c234a3a0e425fceb973d97 (patch)
tree61cb91e2c8f751390c0a74488cb4809697bd54b0 /src/vehicles/Automobile.cpp
parentfixes for braking and cloud rotation at high fps (diff)
downloadre3-2588e69849c3a0e4d8c234a3a0e425fceb973d97.tar
re3-2588e69849c3a0e4d8c234a3a0e425fceb973d97.tar.gz
re3-2588e69849c3a0e4d8c234a3a0e425fceb973d97.tar.bz2
re3-2588e69849c3a0e4d8c234a3a0e425fceb973d97.tar.lz
re3-2588e69849c3a0e4d8c234a3a0e425fceb973d97.tar.xz
re3-2588e69849c3a0e4d8c234a3a0e425fceb973d97.tar.zst
re3-2588e69849c3a0e4d8c234a3a0e425fceb973d97.zip
Diffstat (limited to 'src/vehicles/Automobile.cpp')
-rw-r--r--src/vehicles/Automobile.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vehicles/Automobile.cpp b/src/vehicles/Automobile.cpp
index 83fe44d5..2212ddff 100644
--- a/src/vehicles/Automobile.cpp
+++ b/src/vehicles/Automobile.cpp
@@ -871,8 +871,14 @@ CAutomobile::ProcessControl(void)
CVector wheelFwd = GetForward();
CVector wheelRight = GetRight();
+#ifdef FIX_BUGS
+ // Not sure if this is needed, but brake usually has timestep as a factor
+ if(bIsHandbrakeOn)
+ brake = 20000.0f * CTimer::GetTimeStepFix();
+#else
if(bIsHandbrakeOn)
brake = 20000.0f;
+#endif
if(m_aWheelTimer[CARWHEEL_REAR_LEFT] > 0.0f){
if(mod_HandlingManager.HasFrontWheelDrive(pHandling->nIdentifier))