accidental shadowing in CBike::ProcessControl

This commit is contained in:
aap 2020-06-07 17:27:23 +02:00
parent c5a24eaf70
commit 464b232321

View File

@ -711,7 +711,7 @@ CBike::ProcessControl(void)
fwdSpeed = DotProduct(m_vecMoveSpeed, GetForward()); fwdSpeed = DotProduct(m_vecMoveSpeed, GetForward());
if(!CVehicle::bCheat3) if(!CVehicle::bCheat3)
gripCheat = false; gripCheat = false;
float acceleration = pHandling->Transmission.CalculateDriveAcceleration(m_fGasPedal, m_nCurrentGear, m_fChangeGearTime, fwdSpeed, gripCheat); acceleration = pHandling->Transmission.CalculateDriveAcceleration(m_fGasPedal, m_nCurrentGear, m_fChangeGearTime, fwdSpeed, gripCheat);
acceleration /= m_fForceMultiplier; acceleration /= m_fForceMultiplier;
brake = m_fBrakePedal * pHandling->fBrakeDeceleration * CTimer::GetTimeStep(); brake = m_fBrakePedal * pHandling->fBrakeDeceleration * CTimer::GetTimeStep();