diff options
-rw-r--r-- | simon/vga.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/simon/vga.cpp b/simon/vga.cpp index dfc2949c23..936b6a8303 100644 --- a/simon/vga.cpp +++ b/simon/vga.cpp @@ -1810,15 +1810,13 @@ void SimonState::vc_69() { if (_debugMode) warning("vc_69(%d,%d): music stuff?", a, b); - if (_vc72_var1 == 999) { + if (_vc72_var1 == 999 || _vc72_var1 == 0xFFFF) { _vc70_var2 = b; - midi_play(a); - _vc72_var1 = b; - } else if (_vc72_var1 != 0xFFFF) { - if (_vc72_var1 != a) { - _vc72_var3 = a; - _vc72_var2 = a; - } + midi_play (a); + _vc72_var1 = a; + } else if (_vc72_var1 != a) { + _vc72_var3 = a; + _vc72_var2 = (a & 0xFF) << 8 | (a >> 8); } } |