Little change in previous commit

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14152 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
deveee
2013-09-24 18:04:14 +00:00
parent ee61e8f52a
commit dbd36f47dd

View File

@@ -117,11 +117,12 @@ void SoccerWorld::update(float dt)
if (world->getPhase() == World::GOAL_PHASE)
{
m_goal_timer += dt;
}
if (m_goal_timer > 3.0f)
{
world->setPhase(WorldStatus::RACE_PHASE);
m_goal_timer = 0;
if (m_goal_timer > 3.0f)
{
world->setPhase(WorldStatus::RACE_PHASE);
m_goal_timer = 0;
}
}
// TODO