diff options
Diffstat (limited to 'engines/titanic/sound/seasonal_music_player.cpp')
-rw-r--r-- | engines/titanic/sound/seasonal_music_player.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/titanic/sound/seasonal_music_player.cpp b/engines/titanic/sound/seasonal_music_player.cpp index 637a0020ba..ff5e4809f8 100644 --- a/engines/titanic/sound/seasonal_music_player.cpp +++ b/engines/titanic/sound/seasonal_music_player.cpp @@ -90,15 +90,15 @@ bool CSeasonalMusicPlayer::ChangeSeasonMsg(CChangeSeasonMsg *msg) { bool CSeasonalMusicPlayer::ArboretumGateMsg(CArboretumGateMsg *msg) { CChangeMusicMsg changeMsg; - changeMsg._flags = msg->_value ? 2 : 1; + changeMsg._action = msg->_value ? MUSIC_START : MUSIC_STOP; changeMsg.execute(this); return true; } bool CSeasonalMusicPlayer::ChangeMusicMsg(CChangeMusicMsg *msg) { - if (_isRepeated && msg->_flags == 1) { - _isRepeated = false; + if (_isEnabled && msg->_action == MUSIC_STOP) { + _isEnabled = false; stopGlobalSound(_transition, -1); } @@ -118,8 +118,8 @@ bool CSeasonalMusicPlayer::ChangeMusicMsg(CChangeMusicMsg *msg) { } } - if (!_isRepeated && msg->_flags == 2) { - _isRepeated = true; + if (!_isEnabled && msg->_action == MUSIC_START) { + _isEnabled = true; loadSound(TRANSLATE("c#64.wav", "c#47.wav")); loadSound(TRANSLATE("c#63.wav", "c#46.wav")); loadSound(TRANSLATE("c#65.wav", "c#48.wav")); |