From 9e13ab015bd250f15679e04c63d50fe180aa6477 Mon Sep 17 00:00:00 2001 From: scifly Date: Sun, 11 May 2008 21:48:13 +0000 Subject: [PATCH] BugFix: Prevent the music description text being displayed each time the clock gets to 10 seconds in Follow the Leader mode. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1859 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/gui/race_gui.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/gui/race_gui.cpp b/src/gui/race_gui.cpp index 23ea144f8..5bbfd540c 100644 --- a/src/gui/race_gui.cpp +++ b/src/gui/race_gui.cpp @@ -29,6 +29,7 @@ #include "material_manager.hpp" #include "menu_manager.hpp" #include "sound_manager.hpp" +#include "race_manager.hpp" #undef USE_WIDGET_MANAGER #ifdef USE_WIDGET_MANAGER @@ -1037,7 +1038,14 @@ void RaceGUI::drawStatusText(const float dt) split_screen_ratio_x, split_screen_ratio_y ); } // for pla drawTimer (); - if(world->getTime()getTime()getRaceMode() != RaceManager::RM_FOLLOW_LEADER) + { + drawMusicDescription(); + } + else if (world->getTime()>stk_config->m_leader_intervals[0]-TIME_MUSIC_DESCRIPTION) + drawMusicDescription(); + drawMap (); if ( user_config->m_display_fps ) drawFPS (); drawPlayerIcons ();