mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-06 11:11:35 +00:00
Merge remote branch 'zini/master'
This commit is contained in:
commit
b791a8f6be
51 changed files with 1810 additions and 1806 deletions
|
@ -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();
|
||||
|
|
|
@ -365,7 +365,11 @@ namespace MWSound
|
|||
|
||||
bool SoundManager::isMusicPlaying()
|
||||
{
|
||||
bool test = mData->music->isPlaying();
|
||||
bool test = false;
|
||||
if(mData && mData->music)
|
||||
{
|
||||
test = mData->music->isPlaying();
|
||||
}
|
||||
return test;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue