summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-06-07 18:13:27 +0200
committereray orçunus <erayorcunus@gmail.com>2020-06-07 18:13:27 +0200
commit6cc39e9bdbe74defe6690afed596aaf0cb2a1ce0 (patch)
tree64818afd3ad51e9811a1c8e20944fa311c498e0f
parentHUD sizes (diff)
parentnother bike bug (diff)
downloadre3-6cc39e9bdbe74defe6690afed596aaf0cb2a1ce0.tar
re3-6cc39e9bdbe74defe6690afed596aaf0cb2a1ce0.tar.gz
re3-6cc39e9bdbe74defe6690afed596aaf0cb2a1ce0.tar.bz2
re3-6cc39e9bdbe74defe6690afed596aaf0cb2a1ce0.tar.lz
re3-6cc39e9bdbe74defe6690afed596aaf0cb2a1ce0.tar.xz
re3-6cc39e9bdbe74defe6690afed596aaf0cb2a1ce0.tar.zst
re3-6cc39e9bdbe74defe6690afed596aaf0cb2a1ce0.zip
-rw-r--r--src/vehicles/Bike.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicles/Bike.cpp b/src/vehicles/Bike.cpp
index 74dd376b..252f1b87 100644
--- a/src/vehicles/Bike.cpp
+++ b/src/vehicles/Bike.cpp
@@ -601,7 +601,7 @@ CBike::ProcessControl(void)
m_aSuspensionSpringRatio[i] = 1.0f;
else if(m_wheelStatus[i/2] == WHEEL_STATUS_BURST){
// wheel more bumpy the faster we are
- if(i == BIKESUSP_F1 || BIKESUSP_R1)
+ if(i == BIKESUSP_F1 || i == BIKESUSP_R1)
rnd = CGeneral::GetRandomNumberInRange(0, (uint16)(40*fwdSpeed) + 98) < 100;
if(rnd){
m_aSuspensionSpringRatio[i] += 0.3f*(m_aSuspensionLineLength[i]-m_aSuspensionSpringLength[i])/m_aSuspensionSpringLength[i];
@@ -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();