diff options
author | Sergeanur <s.anureev@yandex.ua> | 2019-10-06 14:49:01 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2019-10-06 14:49:01 +0200 |
commit | dd602eb4a4064537fbe86f6539b9fc39b3245b85 (patch) | |
tree | a01e500b699204d0b0d668cf9e740da5b22f490a /src/vehicles/Automobile.cpp | |
parent | CHud: timer and damage fixes (diff) | |
download | re3-dd602eb4a4064537fbe86f6539b9fc39b3245b85.tar re3-dd602eb4a4064537fbe86f6539b9fc39b3245b85.tar.gz re3-dd602eb4a4064537fbe86f6539b9fc39b3245b85.tar.bz2 re3-dd602eb4a4064537fbe86f6539b9fc39b3245b85.tar.lz re3-dd602eb4a4064537fbe86f6539b9fc39b3245b85.tar.xz re3-dd602eb4a4064537fbe86f6539b9fc39b3245b85.tar.zst re3-dd602eb4a4064537fbe86f6539b9fc39b3245b85.zip |
Diffstat (limited to '')
-rw-r--r-- | src/vehicles/Automobile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicles/Automobile.cpp b/src/vehicles/Automobile.cpp index 00dc73fc..2329a9d9 100644 --- a/src/vehicles/Automobile.cpp +++ b/src/vehicles/Automobile.cpp @@ -1934,7 +1934,7 @@ CAutomobile::Render(void) CVector rearWheelFwd = GetForward(); for(i = 0; i < 4; i++){ if (m_aWheelTimer[i] > 0.0f) { - contactPoints[i] = m_aWheelColPoints[0].point - GetPosition(); + contactPoints[i] = m_aWheelColPoints[i].point - GetPosition(); contactSpeeds[i] = GetSpeed(contactPoints[i]); if (i == CARWHEEL_FRONT_LEFT || i == CARWHEEL_FRONT_RIGHT) m_aWheelSpeed[i] = ProcessWheelRotation(m_aWheelState[i], frontWheelFwd, contactSpeeds[i], 0.5f*mi->m_wheelScale); |