From c368706798caf93dce80a1892876000aff0abc85 Mon Sep 17 00:00:00 2001 From: curaga Date: Fri, 28 Jun 2013 17:49:55 +0000 Subject: [PATCH] No skidding backwards. Fixes 1013. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@13014 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/karts/skidding.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/karts/skidding.cpp b/src/karts/skidding.cpp index d6f5e5db7..4b5ff45e0 100644 --- a/src/karts/skidding.cpp +++ b/src/karts/skidding.cpp @@ -197,6 +197,13 @@ void Skidding::update(float dt, bool is_on_ground, reset(); return; } + + // No skidding backwards or while stopped + if(m_kart->getSpeed() < 0.001f) + { + reset(); + } + m_skid_bonus_ready = false; if (is_on_ground) {