diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-19 00:49:51 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-19 00:49:51 +0200 |
commit | a27fc8d9d93572e7615e5eb599cc7f596c01d7b0 (patch) | |
tree | 9717d1fb8c3667b49a189ca87e4e174eb663c180 /src/vehicles/Automobile.cpp | |
parent | script revision (diff) | |
parent | some less certainly fps fixes (diff) | |
download | re3-a27fc8d9d93572e7615e5eb599cc7f596c01d7b0.tar re3-a27fc8d9d93572e7615e5eb599cc7f596c01d7b0.tar.gz re3-a27fc8d9d93572e7615e5eb599cc7f596c01d7b0.tar.bz2 re3-a27fc8d9d93572e7615e5eb599cc7f596c01d7b0.tar.lz re3-a27fc8d9d93572e7615e5eb599cc7f596c01d7b0.tar.xz re3-a27fc8d9d93572e7615e5eb599cc7f596c01d7b0.tar.zst re3-a27fc8d9d93572e7615e5eb599cc7f596c01d7b0.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)) |