From a2d4763201b04fbc8d104df67e238c05a8639b91 Mon Sep 17 00:00:00 2001 From: Benau Date: Sun, 30 Sep 2018 16:30:27 +0800 Subject: [PATCH] Hide minimap when hide all for artist debug mode --- src/states_screens/race_gui.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/states_screens/race_gui.cpp b/src/states_screens/race_gui.cpp index 3ebb532eb..f28fee182 100644 --- a/src/states_screens/race_gui.cpp +++ b/src/states_screens/race_gui.cpp @@ -261,12 +261,13 @@ void RaceGUI::renderGlobal(float dt) if(world->getPhase() == World::GOAL_PHASE) drawGlobalGoal(); + if (!m_enabled) return; + // 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; //drawGlobalTimer checks if it should display in the current phase/mode drawGlobalTimer();