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:
parent
b7c8b77952
commit
a2e93a9b2c
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user