From 464b232321ea50cc926b6b15c540832cd68aefb7 Mon Sep 17 00:00:00 2001 From: aap Date: Sun, 7 Jun 2020 17:27:23 +0200 Subject: [PATCH] accidental shadowing in CBike::ProcessControl --- src/vehicles/Bike.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vehicles/Bike.cpp b/src/vehicles/Bike.cpp index 74dd376b..0254247e 100644 --- a/src/vehicles/Bike.cpp +++ b/src/vehicles/Bike.cpp @@ -711,7 +711,7 @@ CBike::ProcessControl(void) fwdSpeed = DotProduct(m_vecMoveSpeed, GetForward()); if(!CVehicle::bCheat3) 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; brake = m_fBrakePedal * pHandling->fBrakeDeceleration * CTimer::GetTimeStep();