diff options
author | Jamieson Christian | 2003-05-20 16:43:53 +0000 |
---|---|---|
committer | Jamieson Christian | 2003-05-20 16:43:53 +0000 |
commit | a768deb83fe38ce879e46339431a8a49d9cf8c73 (patch) | |
tree | cc949e63dd3f4b4b11e5d1e2f01ea39695aac872 /simon/items.cpp | |
parent | dab0e4308e137e1a82856a9b25575b720d4bd2bb (diff) | |
download | scummvm-rg350-a768deb83fe38ce879e46339431a8a49d9cf8c73.tar.gz scummvm-rg350-a768deb83fe38ce879e46339431a8a49d9cf8c73.tar.bz2 scummvm-rg350-a768deb83fe38ce879e46339431a8a49d9cf8c73.zip |
Simon music fixes
svn-id: r7744
Diffstat (limited to 'simon/items.cpp')
-rw-r--r-- | simon/items.cpp | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/simon/items.cpp b/simon/items.cpp index 98c83b43c9..f9ae8f5a82 100644 --- a/simon/items.cpp +++ b/simon/items.cpp @@ -1434,12 +1434,37 @@ void SimonState::o_unk_132_helper_2(FillOrCopyStruct *fcs, int x) { void SimonState::o_unk_127() { int a = getVarOrWord(); int b = getVarOrWord(); + if (_game & GF_SIMON2) { uint c = getVarOrByte(); if (_debugMode) warning("o_unk_127(%d,%d,%d) not implemented properly", a, b, c); + if (_last_music_played != a) { + if (b == 999) { +// _next_music_to_play = a; + playMusic (a); + _last_music_played = a; + // midi_play (0); + } + } + + if (b == _vc72_var1 || b == 999) + return; + + if (_vc72_var1 == -1 || _vc72_var1 == 999) { + _vc70_var2 = c; + _vc70_var1 = -1; + _vc72_var3 = -1; + midi_play (b); + _vc72_var1 = b; + } else { + midi_play (b); +// _vc72_var3 = b; +// _vc72_var2 = c; + } +/* if (_last_music_played == a) { if (b == _vc72_var1 || b == 999) return; @@ -1459,12 +1484,16 @@ void SimonState::o_unk_127() { midi.jump (b, c); } } else if (b == 999) { - _next_music_to_play = a; + // _next_music_to_play = a; + playMusic (a); + midi_play (b); } +*/ } else { if (a != _last_music_played) { _last_music_played = a; playMusic(a); + midi_play (b); } } } |