From 416b93b0a152122e8267b71ad9ebf5d4912874da Mon Sep 17 00:00:00 2001 From: hiker Date: Mon, 4 Sep 2017 18:08:14 +1000 Subject: [PATCH] Reset steering when calling reset in a kart, which results in more accurate physics replays. --- src/karts/kart.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/karts/kart.cpp b/src/karts/kart.cpp index 7c20cbce5..9a5a65df4 100644 --- a/src/karts/kart.cpp +++ b/src/karts/kart.cpp @@ -377,6 +377,8 @@ void Kart::reset() if(m_body) m_body->setDamping(m_kart_properties->getStabilityChassisLinearDamping(), m_kart_properties->getStabilityChassisAngularDamping()); + for (unsigned int i = 0; i < 4; i++) + m_vehicle->getWheelInfo(i).m_steering = 0; if(m_terrain_sound) {