Changed fabsf(steering)<0.3f to 0.9 in order to make it skid the other way even if steering is still at 90% to the other direction. It's complicated to explain.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10966 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
magned 2012-03-13 22:53:21 +00:00
parent 330c269f42
commit 6783ab7d6f

View File

@ -165,7 +165,7 @@ void Skidding::update(float dt, bool is_on_ground,
// presses right (it will take a few frames for this steering to
// actuallu take place, see player_controller) - the kart would skid
// to the left. So we test for a 'clear enough' steering direction.
if(!skidding || fabsf(steering)<0.3f) break;
if(!skidding || fabsf(steering)<0.9f) break;
m_skid_state = steering > 0 ? SKID_ACCUMULATE_RIGHT
: SKID_ACCUMULATE_LEFT;
m_skid_time = 0; // fallthrough