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
@ -534,6 +534,8 @@ void RaceGUI::addMessage(const std::string &msg, const Kart *kart, float time,
|
|||||||
// usually the title and composer.
|
// usually the title and composer.
|
||||||
void RaceGUI::drawMusicDescription()
|
void RaceGUI::drawMusicDescription()
|
||||||
{
|
{
|
||||||
|
if (!UserConfigParams::m_music) return; // show no music description when it's off
|
||||||
|
|
||||||
const MusicInformation* mi=sound_manager->getCurrentMusic();
|
const MusicInformation* mi=sound_manager->getCurrentMusic();
|
||||||
if(!mi) return;
|
if(!mi) return;
|
||||||
int y=UserConfigParams::m_height-40;
|
int y=UserConfigParams::m_height-40;
|
||||||
|
Loading…
Reference in New Issue
Block a user