diff options
author | aap <aap@papnet.eu> | 2020-05-18 16:55:38 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-05-18 22:52:35 +0200 |
commit | abd230dcddd7e878f8a6b69193eb0cb74959c7b9 (patch) | |
tree | 4faf5f0e060c87009a6a4a7f9cc20046ec134bc9 /src/vehicles/Automobile.cpp | |
parent | only one sunbathe anim group (diff) | |
download | re3-abd230dcddd7e878f8a6b69193eb0cb74959c7b9.tar re3-abd230dcddd7e878f8a6b69193eb0cb74959c7b9.tar.gz re3-abd230dcddd7e878f8a6b69193eb0cb74959c7b9.tar.bz2 re3-abd230dcddd7e878f8a6b69193eb0cb74959c7b9.tar.lz re3-abd230dcddd7e878f8a6b69193eb0cb74959c7b9.tar.xz re3-abd230dcddd7e878f8a6b69193eb0cb74959c7b9.tar.zst re3-abd230dcddd7e878f8a6b69193eb0cb74959c7b9.zip |
Diffstat (limited to 'src/vehicles/Automobile.cpp')
-rw-r--r-- | src/vehicles/Automobile.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vehicles/Automobile.cpp b/src/vehicles/Automobile.cpp index aad31bbf..e0ee0296 100644 --- a/src/vehicles/Automobile.cpp +++ b/src/vehicles/Automobile.cpp @@ -865,8 +865,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)) |