Don't try to play random tunes when sound is disabled

actorid
Jan-Peter Nilsson 14 years ago
parent d38f2f0a00
commit ba18dc46ef

@ -67,7 +67,7 @@ void OMW::Engine::executeLocalScripts()
bool OMW::Engine::frameStarted(const Ogre::FrameEvent& evt)
{
if(! (mEnvironment.mSoundManager->isMusicPlaying()))
if(mUseSound && !(mEnvironment.mSoundManager->isMusicPlaying()))
{
// Play some good 'ol tunes
mEnvironment.mSoundManager->startRandomTitle();

Loading…
Cancel
Save