Bugfix: plunger would still move while the race is paused, resulting in players

being able to wait till the plunger is off screen.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12116 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk
2012-12-01 03:10:42 +00:00
parent c0908f9ef0
commit 8d782bc7ee

View File

@@ -1030,6 +1030,8 @@ void RaceGUIBase::drawPlungerInFace(const AbstractKart *kart, float dt)
m_plunger_state = PLUNGER_STATE_INIT;
return;
}
if(World::getWorld()->getPhase()==World::IN_GAME_MENU_PHASE)
return;
const core::recti &viewport = kart->getCamera()->getViewport();