Don't show music desc when music is off

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3869 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2009-08-16 20:55:06 +00:00
parent b7c8b77952
commit a2e93a9b2c
2 changed files with 3 additions and 1 deletions

View File

@ -501,7 +501,7 @@ bool InputManager::input(const SEvent& event)
*/
}
#endif
// block events in all modes but initial menus (except in text boxes to allow typing)
return getDeviceList()->playerAssignMode() != NO_ASSIGN && !GUIEngine::isWithinATextBox;
}

View File

@ -534,6 +534,8 @@ void RaceGUI::addMessage(const std::string &msg, const Kart *kart, float time,
// usually the title and composer.
void RaceGUI::drawMusicDescription()
{
if (!UserConfigParams::m_music) return; // show no music description when it's off
const MusicInformation* mi=sound_manager->getCurrentMusic();
if(!mi) return;
int y=UserConfigParams::m_height-40;