Fix nitro in old (current default) skidding code (skidding effect

was shown all the time after 2.5 seconds of skidding all in all).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10755 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2012-01-29 22:41:05 +00:00
parent 35d02e2547
commit 369338e39f

View File

@ -1771,7 +1771,9 @@ void Kart::updateSkidding(float dt)
&bonus_force);
// Relative 0 means it will emitt the minimum rate, i.e. the rate
// set to indicate that the bonus is now available.
if(level>0)
if(level>0 &&
// FIXME hiker: remove once the new skidding code is final
m_kart_properties->getSkidVisualTime()>0)
{
m_kart_gfx->setSkidLevel(level);
m_kart_gfx->setCreationRateRelative(KartGFX::KGFX_SKID, 0.0f);