Show boost at startup (#2586)

* Show boost at startup

* Fix https://github.com/supertuxkart/stk-code/pull/2586#issuecomment-235765919
This commit is contained in:
qwertychouskie 2016-07-28 16:24:42 -07:00 committed by auriamg
parent aba8d8d1f0
commit 611e70ac83

View File

@ -1,7 +1,7 @@
//
// SuperTuxKart - a fun racing game with go-kart
// Copyright (C) 2004-2015 Steve Baker <sjbaker1@airmail.net>
// Copyright (C) 2006-2015 SuperTuxKart-Team, Joerg Henrichs, Steve Baker
// SuperTuxKart - A racing game
// Copyright (C) 2004-2016 Steve Baker <sjbaker1@airmail.net>
// Copyright (C) 2006-2016 SuperTuxKart Team, Joerg Henrichs, Steve Baker
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
@ -2110,6 +2110,7 @@ void Kart::updatePhysics(float dt)
{
m_has_started = true;
float f = getStartupBoost();
if(f >= 0.0f) m_kart_gfx->setCreationRateAbsolute(KartGFX::KGFX_ZIPPER, 100*f);
m_max_speed->instantSpeedIncrease(MaxSpeed::MS_INCREASE_ZIPPER,
0.9f*f, f,
/*engine_force*/200.0f,