Display the minimap during the start countdown

So the players (especially those not familiar with the tracks) can take a look at it before starting to race.
This commit is contained in:
Alayan-stk-2 2018-05-05 21:09:33 +02:00 committed by GitHub
parent 74a77ed5ef
commit bc569b9e04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -227,6 +227,9 @@ void RaceGUI::renderGlobal(float dt)
if(world->getPhase() == World::GOAL_PHASE)
drawGlobalGoal();
// MiniMap is drawn when the players wait for the start countdown to end
drawGlobalMiniMap();
// Timer etc. are not displayed unless the game is actually started.
if(!world->isRacePhase()) return;
if (!m_enabled) return;
@ -245,8 +248,6 @@ void RaceGUI::renderGlobal(float dt)
}
}
drawGlobalMiniMap();
if (!m_is_tutorial) drawGlobalPlayerIcons(m_map_height);
if(Track::getCurrentTrack()->isSoccer()) drawScores();
#endif