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
This commit is contained in:
curaga 2013-06-28 17:49:55 +00:00
parent 8b9444430b
commit c368706798

View File

@ -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)
{