Vehicle: Automobile: fixes and style things

This commit is contained in:
erorcun
2021-01-02 18:27:11 +03:00
parent 38bca2332d
commit 482ff4562f
4 changed files with 8 additions and 4 deletions

View File

@@ -531,9 +531,9 @@ CVehicle::ProcessWheel(CVector &wheelFwd, CVector &wheelRight, CVector &wheelCon
if(!bBraking){
if(m_fGasPedal < 0.01f){
if(GetModelIndex() == MI_RCBANDIT)
brake = 0.2f * mod_HandlingManager.fWheelFriction / m_fMass;
brake = 0.2f * mod_HandlingManager.fWheelFriction / pHandling->m_fMass;
else
brake = mod_HandlingManager.fWheelFriction / m_fMass;
brake = mod_HandlingManager.fWheelFriction / pHandling->m_fMass;
#ifdef FIX_BUGS
brake *= CTimer::GetTimeStepFix();
#endif