summaryrefslogtreecommitdiffstats
path: root/src/control/Replay.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-07-07 18:36:55 +0200
committeraap <aap@papnet.eu>2019-07-07 18:36:55 +0200
commitc1f3ce8cceb675a9c76b4dc4e7cdfb18b17c4f2f (patch)
tree03233dd562394ce53c3a0024d7f9dfe71d722ac8 /src/control/Replay.cpp
parentthe great reorganization (diff)
downloadre3-c1f3ce8cceb675a9c76b4dc4e7cdfb18b17c4f2f.tar
re3-c1f3ce8cceb675a9c76b4dc4e7cdfb18b17c4f2f.tar.gz
re3-c1f3ce8cceb675a9c76b4dc4e7cdfb18b17c4f2f.tar.bz2
re3-c1f3ce8cceb675a9c76b4dc4e7cdfb18b17c4f2f.tar.lz
re3-c1f3ce8cceb675a9c76b4dc4e7cdfb18b17c4f2f.tar.xz
re3-c1f3ce8cceb675a9c76b4dc4e7cdfb18b17c4f2f.tar.zst
re3-c1f3ce8cceb675a9c76b4dc4e7cdfb18b17c4f2f.zip
Diffstat (limited to '')
-rw-r--r--src/control/Replay.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/control/Replay.cpp b/src/control/Replay.cpp
index 06995663..d0264415 100644
--- a/src/control/Replay.cpp
+++ b/src/control/Replay.cpp
@@ -686,8 +686,8 @@ void CReplay::ProcessCarUpdate(CVehicle *vehicle, float interpolation, CAddressI
car->m_aSuspensionSpringRatio[i] = vp->wheel_susp_dist[i] / 50.0f;
car->m_aWheelRotation[i] = vp->wheel_rotation[i] * M_PI / 128.0f;
}
- car->Doors[2].m_fAngle = car->Doors[2].m_fPreviousAngle = vp->door_angles[0] * M_PI / 127.0f;
- car->Doors[3].m_fAngle = car->Doors[3].m_fPreviousAngle = vp->door_angles[1] * M_PI / 127.0f;
+ car->Doors[2].m_fAngle = car->Doors[2].m_fPrevAngle = vp->door_angles[0] * M_PI / 127.0f;
+ car->Doors[3].m_fAngle = car->Doors[3].m_fPrevAngle = vp->door_angles[1] * M_PI / 127.0f;
if (vp->door_angles[0])
car->Damage.SetDoorStatus(2, 2);
if (vp->door_angles[1])