Bugfix for 1118

Hide countdown as soon as race ends to prevent the drawGlobalTimer() method in race_gui from checking for failed challenges.

https://sourceforge.net/apps/trac/supertuxkart/ticket/1118

Signed-off-by: Sachith Hasaranga Seneviratne <sachith500@gmail.com>
This commit is contained in:
Sachith Hasaranga Seneviratne
2014-02-12 22:04:21 +05:30
parent 70f89a8bce
commit 56656b581d

View File

@@ -170,7 +170,10 @@ void RaceGUI::renderGlobal(float dt)
if (!m_is_tutorial)
{
drawGlobalTimer();
//stop displaying timer as soon as race is over
if (world->getPhase()<WorldStatus::DELAY_FINISH_PHASE)
drawGlobalTimer();
if(world->getPhase() == WorldStatus::GO_PHASE ||
world->getPhase() == WorldStatus::MUSIC_PHASE)
{