mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-15 18:39:51 +00:00
Don't try to play random tunes when sound is disabled
This commit is contained in:
parent
d38f2f0a00
commit
ba18dc46ef
@ -67,7 +67,7 @@ void OMW::Engine::executeLocalScripts()
|
|||||||
|
|
||||||
bool OMW::Engine::frameStarted(const Ogre::FrameEvent& evt)
|
bool OMW::Engine::frameStarted(const Ogre::FrameEvent& evt)
|
||||||
{
|
{
|
||||||
if(! (mEnvironment.mSoundManager->isMusicPlaying()))
|
if(mUseSound && !(mEnvironment.mSoundManager->isMusicPlaying()))
|
||||||
{
|
{
|
||||||
// Play some good 'ol tunes
|
// Play some good 'ol tunes
|
||||||
mEnvironment.mSoundManager->startRandomTitle();
|
mEnvironment.mSoundManager->startRandomTitle();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user