diff options
-rw-r--r-- | engines/lab/music.cpp | 6 | ||||
-rw-r--r-- | engines/lab/music.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/engines/lab/music.cpp b/engines/lab/music.cpp index 4c889ca044..114179b310 100644 --- a/engines/lab/music.cpp +++ b/engines/lab/music.cpp @@ -57,7 +57,7 @@ Music::Music(LabEngine *vm) : _vm(vm) { _musicOn = false; _queuingAudioStream = nullptr; - _lastMusicRoom = 1; + _curRoomMusic = 1; } void Music::updateMusic() { @@ -212,7 +212,7 @@ void Music::setMusic(bool on) { } void Music::checkRoomMusic() { - if ((_lastMusicRoom == _vm->_roomNum) || !_musicOn) + if ((_curRoomMusic == _vm->_roomNum) || !_musicOn) return; if (_vm->_roomNum == CLOWNROOM) @@ -220,7 +220,7 @@ void Music::checkRoomMusic() { else if (_vm->_roomNum == DIMROOM) changeMusic("Music:Rm81"); - _lastMusicRoom = _vm->_roomNum; + _curRoomMusic = _vm->_roomNum; } void Music::changeMusic(const Common::String filename) { diff --git a/engines/lab/music.h b/engines/lab/music.h index 2cd87cd9a6..a25d965bfb 100644 --- a/engines/lab/music.h +++ b/engines/lab/music.h @@ -56,7 +56,7 @@ private: bool _musicPaused; bool _oldMusicOn; - uint16 _lastMusicRoom ; + uint16 _curRoomMusic ; uint32 _tLeftInFile; uint32 _leftInFile; |