TSAGE: Bugfix for properly decrementing _disabledServerCount

This commit is contained in:
Paul Gilbert 2011-06-20 19:57:33 +10:00
parent 123f2416d8
commit f8e0ff86c7

View file

@ -215,12 +215,12 @@ void SoundManager::installDriver(int driverNum) {
// Unmute currently active sounds
for (Common::List<Sound *>::iterator i = _playList.begin(); i != _playList.end(); ++i)
(*i)->mute(false);
enableSoundServer();
}
break;
}
}
enableSoundServer();
}
/**
@ -355,7 +355,7 @@ void SoundManager::rethinkVoiceTypes() {
}
void SoundManager::_sfSoundServer() {
if (!sfManager()._serverDisabledCount && !sfManager()._serverSuspendedCount)
if (sfManager()._serverDisabledCount || sfManager()._serverSuspendedCount)
return;
if (sfManager()._needToRethink) {