summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Vehicle.cpp
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2021-01-02 12:41:53 +0100
committererorcun <erorcunerorcun@hotmail.com.tr>2021-01-02 12:41:53 +0100
commit2268365c3b7bbb014093e95d3f737648d50bc18f (patch)
tree2b2fa9a137895c6d2f8875f164128c78f375790d /src/vehicles/Vehicle.cpp
parentPartial controller buttons support (diff)
downloadre3-2268365c3b7bbb014093e95d3f737648d50bc18f.tar
re3-2268365c3b7bbb014093e95d3f737648d50bc18f.tar.gz
re3-2268365c3b7bbb014093e95d3f737648d50bc18f.tar.bz2
re3-2268365c3b7bbb014093e95d3f737648d50bc18f.tar.lz
re3-2268365c3b7bbb014093e95d3f737648d50bc18f.tar.xz
re3-2268365c3b7bbb014093e95d3f737648d50bc18f.tar.zst
re3-2268365c3b7bbb014093e95d3f737648d50bc18f.zip
Diffstat (limited to 'src/vehicles/Vehicle.cpp')
-rw-r--r--src/vehicles/Vehicle.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vehicles/Vehicle.cpp b/src/vehicles/Vehicle.cpp
index 325eb160..c9a77193 100644
--- a/src/vehicles/Vehicle.cpp
+++ b/src/vehicles/Vehicle.cpp
@@ -836,11 +836,11 @@ CVehicle::ProcessWheel(CVector &wheelFwd, CVector &wheelRight, CVector &wheelCon
if(IsBike())
brake = 0.6f * mod_HandlingManager.fWheelFriction / (pHandling->fMass + 200.0f);
else if(pHandling->fMass < 500.0f)
- brake = mod_HandlingManager.fWheelFriction / m_fMass;
+ brake = mod_HandlingManager.fWheelFriction / pHandling->fMass;
else if(GetModelIndex() == MI_RCBANDIT)
- brake = 0.2f * mod_HandlingManager.fWheelFriction / m_fMass;
+ brake = 0.2f * mod_HandlingManager.fWheelFriction / pHandling->fMass;
else
- brake = mod_HandlingManager.fWheelFriction / m_fMass;
+ brake = mod_HandlingManager.fWheelFriction / pHandling->fMass;
#ifdef FIX_BUGS
brake *= CTimer::GetTimeStepFix();
#endif