From 83fc0b26442ea1a19a980e069288be85bcf63455 Mon Sep 17 00:00:00 2001 From: hikerstk Date: Wed, 14 Mar 2012 23:10:16 +0000 Subject: [PATCH] Improved steering after releasing the skid button. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10968 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/karts/skidding.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/karts/skidding.cpp b/src/karts/skidding.cpp index 6d57415a0..2b408052d 100644 --- a/src/karts/skidding.cpp +++ b/src/karts/skidding.cpp @@ -69,10 +69,11 @@ void Skidding::updateSteering(float steer) { case SKID_OLD: assert(false); break; + case SKID_SHOW_GFX_LEFT: + case SKID_SHOW_GFX_RIGHT: case SKID_NONE: m_real_steering = steer; break; - case SKID_SHOW_GFX_RIGHT: case SKID_ACCUMULATE_RIGHT: { float f = (1.0f+steer)*0.5f; // map [-1,1] --> [0, 1] @@ -80,7 +81,6 @@ void Skidding::updateSteering(float steer) m_skid_reduce_turn_delta*f; break; } - case SKID_SHOW_GFX_LEFT: case SKID_ACCUMULATE_LEFT: { float f = (-1.0f+steer)*0.5f; // map [-1,1] --> [-1, 0]