1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-02 16:45:35 +00:00

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

This commit is contained in:
Jan-Peter Nilsson 2010-12-30 20:24:39 +01:00
parent d38f2f0a00
commit ba18dc46ef

View file

@ -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();