Very minor bugfix: if a kart got no startup boost, it would

nevertheless set a startup boost of 0 in bullet, which causes
the first frame not to have correct physics applied (not noticable
in game actually).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10289 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2011-11-30 23:44:04 +00:00
parent 8799b3ca3b
commit 357297dc38

View File

@ -1541,7 +1541,8 @@ void Kart::updatePhysics(float dt)
{
m_has_started = true;
float f = m_kart_properties->getStartupBoost();
m_vehicle->activateZipper(f);
if(f>0)
m_vehicle->activateZipper(f);
MaxSpeed::increaseMaxSpeed(MS_INCREASE_ZIPPER, 0.9f*f,
5.0f, 5.0f);