summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-06-07 17:35:22 +0200
committeraap <aap@papnet.eu>2020-06-07 17:35:22 +0200
commitdda9d03e5486793082dd75e50de419c51a096656 (patch)
tree44a63c94a9ee251040a4edbb88d832177abd5cfa /src
parentaccidental shadowing in CBike::ProcessControl (diff)
downloadre3-dda9d03e5486793082dd75e50de419c51a096656.tar
re3-dda9d03e5486793082dd75e50de419c51a096656.tar.gz
re3-dda9d03e5486793082dd75e50de419c51a096656.tar.bz2
re3-dda9d03e5486793082dd75e50de419c51a096656.tar.lz
re3-dda9d03e5486793082dd75e50de419c51a096656.tar.xz
re3-dda9d03e5486793082dd75e50de419c51a096656.tar.zst
re3-dda9d03e5486793082dd75e50de419c51a096656.zip
Diffstat (limited to 'src')
-rw-r--r--src/vehicles/Bike.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicles/Bike.cpp b/src/vehicles/Bike.cpp
index 0254247e..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];