mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-27 05:32:45 +00:00
LAB: Get rid of _doReset
This resulted in calling resetMusic() twice
This commit is contained in:
parent
86a593af09
commit
bce260bb5f
@ -58,7 +58,6 @@ Music::Music(LabEngine *vm) : _vm(vm) {
|
||||
_musicOn = false;
|
||||
_queuingAudioStream = nullptr;
|
||||
_lastMusicRoom = 1;
|
||||
_doReset = true;
|
||||
}
|
||||
|
||||
void Music::updateMusic() {
|
||||
@ -220,8 +219,6 @@ void Music::checkRoomMusic() {
|
||||
changeMusic("Music:Laugh");
|
||||
else if (_vm->_roomNum == DIMROOM)
|
||||
changeMusic("Music:Rm81");
|
||||
else if (_doReset)
|
||||
resetMusic();
|
||||
|
||||
_lastMusicRoom = _vm->_roomNum;
|
||||
}
|
||||
|
@ -52,7 +52,6 @@ private:
|
||||
Common::File *_file;
|
||||
Common::File *_tFile;
|
||||
|
||||
bool _doReset;
|
||||
bool _musicOn;
|
||||
bool _musicPaused;
|
||||
bool _oldMusicOn;
|
||||
@ -125,7 +124,6 @@ public:
|
||||
* Turns the music on and off.
|
||||
*/
|
||||
void setMusic(bool on);
|
||||
void setMusicReset(bool reset) { _doReset = reset; }
|
||||
void stopSoundEffect();
|
||||
|
||||
/**
|
||||
|
@ -386,12 +386,10 @@ void LabEngine::doActions(const ActionList &actionList) {
|
||||
|
||||
case kActionChangeMusic:
|
||||
_music->changeMusic(action->_messages[0]);
|
||||
_music->setMusicReset(false);
|
||||
break;
|
||||
|
||||
case kActionResetMusic:
|
||||
_music->resetMusic();
|
||||
_music->setMusicReset(true);
|
||||
break;
|
||||
|
||||
case kActionFillMusic:
|
||||
|
Loading…
x
Reference in New Issue
Block a user