diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2019-06-26 22:47:23 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2019-06-26 22:47:23 +0200 |
commit | fa132bb773394764feb453b08c4785364f19adf5 (patch) | |
tree | 6ca5314aa824d2bf5fefd45698a66c59ee9c3b18 /src/control | |
parent | Merge with upstream (diff) | |
download | re3-fa132bb773394764feb453b08c4785364f19adf5.tar re3-fa132bb773394764feb453b08c4785364f19adf5.tar.gz re3-fa132bb773394764feb453b08c4785364f19adf5.tar.bz2 re3-fa132bb773394764feb453b08c4785364f19adf5.tar.lz re3-fa132bb773394764feb453b08c4785364f19adf5.tar.xz re3-fa132bb773394764feb453b08c4785364f19adf5.tar.zst re3-fa132bb773394764feb453b08c4785364f19adf5.zip |
Diffstat (limited to 'src/control')
-rw-r--r-- | src/control/Replay.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/control/Replay.cpp b/src/control/Replay.cpp index 1c71f25f..9ac1280e 100644 --- a/src/control/Replay.cpp +++ b/src/control/Replay.cpp @@ -419,7 +419,7 @@ void CReplay::StoreCarUpdate(CVehicle *vehicle, int id) vp->index = id; vp->matrix.CompressFromFullMatrix(vehicle->GetMatrix()); vp->health = vehicle->m_fHealth / 4.0f; /* Not anticipated that health can be > 1000. */ - vp->acceleration = vehicle->m_fAcceleration * 100.0f; + vp->acceleration = vehicle->m_fGasPedal * 100.0f; vp->panels = vehicle->IsCar() ? ((CAutomobile*)vehicle)->m_DamageManager.m_abPanelsStatus : 0; vp->velocityX = 8000.0f * max(-4.0f, min(4.0f, vehicle->GetSpeed().x)); /* 8000!? */ vp->velocityY = 8000.0f * max(-4.0f, min(4.0f, vehicle->GetSpeed().y)); @@ -430,7 +430,7 @@ void CReplay::StoreCarUpdate(CVehicle *vehicle, int id) if (vehicle->GetModelIndex() == MI_RHINO) vp->car_gun = 128.0f / M_PI * ((CAutomobile*)vehicle)->m_fCarGunLR; else - vp->wheel_state = 50.0f * vehicle->m_fWheelState; + vp->wheel_state = 50.0f * vehicle->m_fSteerAngle; if (vehicle->IsCar()){ CAutomobile* car = (CAutomobile*)vehicle; for (int i = 0; i < 4; i++){ |