Bugfix: releasing skidding was frame rate dependent.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2844 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2009-01-06 12:45:51 +00:00
parent cf264418c7
commit 28effae153

View File

@ -801,7 +801,8 @@ void Kart::updatePhysics (float dt)
}
else if(m_skidding>1.0f)
{
m_skidding *= m_kart_properties->getSkidDecrease();
m_skidding -= m_kart_properties->getSkidDecrease()
*dt/m_kart_properties->getTimeTillMaxSkid();
if(m_skidding<1.0f) m_skidding=1.0f;
}
if(m_skidding>1.0f)