mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-23 17:49:16 +01:00
nother bike bug
This commit is contained in:
parent
464b232321
commit
dda9d03e54
@ -601,7 +601,7 @@ CBike::ProcessControl(void)
|
|||||||
m_aSuspensionSpringRatio[i] = 1.0f;
|
m_aSuspensionSpringRatio[i] = 1.0f;
|
||||||
else if(m_wheelStatus[i/2] == WHEEL_STATUS_BURST){
|
else if(m_wheelStatus[i/2] == WHEEL_STATUS_BURST){
|
||||||
// wheel more bumpy the faster we are
|
// 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;
|
rnd = CGeneral::GetRandomNumberInRange(0, (uint16)(40*fwdSpeed) + 98) < 100;
|
||||||
if(rnd){
|
if(rnd){
|
||||||
m_aSuspensionSpringRatio[i] += 0.3f*(m_aSuspensionLineLength[i]-m_aSuspensionSpringLength[i])/m_aSuspensionSpringLength[i];
|
m_aSuspensionSpringRatio[i] += 0.3f*(m_aSuspensionLineLength[i]-m_aSuspensionSpringLength[i])/m_aSuspensionSpringLength[i];
|
||||||
|
Loading…
Reference in New Issue
Block a user