diff options
author | aap <aap@papnet.eu> | 2020-06-04 17:39:18 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-06-04 17:39:26 +0200 |
commit | 95e96c86a1924a98c648fbcd251c9dca5d66c4bb (patch) | |
tree | 57e724bb453e10526346722af47c359bc90bbbab /src/vehicles | |
parent | fixes, mostly from miami (diff) | |
download | re3-95e96c86a1924a98c648fbcd251c9dca5d66c4bb.tar re3-95e96c86a1924a98c648fbcd251c9dca5d66c4bb.tar.gz re3-95e96c86a1924a98c648fbcd251c9dca5d66c4bb.tar.bz2 re3-95e96c86a1924a98c648fbcd251c9dca5d66c4bb.tar.lz re3-95e96c86a1924a98c648fbcd251c9dca5d66c4bb.tar.xz re3-95e96c86a1924a98c648fbcd251c9dca5d66c4bb.tar.zst re3-95e96c86a1924a98c648fbcd251c9dca5d66c4bb.zip |
Diffstat (limited to 'src/vehicles')
-rw-r--r-- | src/vehicles/Automobile.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/vehicles/Automobile.cpp b/src/vehicles/Automobile.cpp index 9fe172fa..eb1bad97 100644 --- a/src/vehicles/Automobile.cpp +++ b/src/vehicles/Automobile.cpp @@ -220,6 +220,7 @@ void CAutomobile::ProcessControl(void) { int i; + float wheelRot; CColModel *colModel; if(bUsingSpecialColModel) @@ -372,11 +373,9 @@ CAutomobile::ProcessControl(void) pHandling->Transmission.CalculateGearForSimpleCar(AutoPilot.m_fMaxTrafficSpeed/50.0f, m_nCurrentGear); - { - float wheelRot = ProcessWheelRotation(WHEEL_STATE_NORMAL, GetForward(), m_vecMoveSpeed, 0.35f); + wheelRot = ProcessWheelRotation(WHEEL_STATE_NORMAL, GetForward(), m_vecMoveSpeed, 0.35f); for(i = 0; i < 4; i++) m_aWheelRotation[i] += wheelRot; - } PlayHornIfNecessary(); ReduceHornCounter(); @@ -618,7 +617,7 @@ CAutomobile::ProcessControl(void) for(i = 0; i < 4; i++){ if(m_aSuspensionSpringRatio[i] < 1.0f){ float bias = pHandling->fSuspensionBias; - if(i == 1 || i == 3) // rear + if(i == CARWHEEL_REAR_LEFT || i == CARWHEEL_REAR_RIGHT) bias = 1.0f - bias; ApplySpringCollision(pHandling->fSuspensionForceLevel, |