mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-03 16:58:26 +00:00
Fixed missing background sound in Gob1
This commit is contained in:
parent
6ed7bd1263
commit
64538394ec
@ -55,9 +55,7 @@ Sound::Sound(GobEngine *vm) : _vm(vm) {
|
||||
_cdrom = nullptr;
|
||||
_bgatmos = nullptr;
|
||||
|
||||
_hasAdLib = (!_vm->_noMusic && _vm->hasAdLib());
|
||||
|
||||
_hasAdLibBg = _hasAdLib;
|
||||
_hasAdLibBg = _hasAdLib = (!_vm->_noMusic && _vm->hasAdLib());
|
||||
|
||||
if (!_vm->_noMusic && (_vm->getPlatform() == Common::kPlatformAmiga)) {
|
||||
_infogrames = new Infogrames(*_vm->_mixer);
|
||||
@ -337,7 +335,7 @@ void Sound::adlibPlayTrack(const char *trackname) {
|
||||
}
|
||||
|
||||
void Sound::adlibPlayBgMusic() {
|
||||
if (!_hasAdLib || _hasAdLibBg)
|
||||
if (!_hasAdLib || !_hasAdLibBg) // If one of those is disabled, then stop there
|
||||
return;
|
||||
|
||||
createADLPlayer();
|
||||
|
@ -154,8 +154,8 @@ public:
|
||||
private:
|
||||
GobEngine *_vm;
|
||||
|
||||
bool _hasAdLib;
|
||||
bool _hasAdLibBg;
|
||||
bool _hasAdLib = false;
|
||||
bool _hasAdLibBg = false;
|
||||
|
||||
SoundDesc _sounds[kSoundsCount];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user