maybe a fix for bug #595813, SIMON: fails to initialise midi

svn-id: r5203
This commit is contained in:
Max Horn 2002-10-20 18:12:11 +00:00
parent 13808c2a3b
commit 4cbab55b7a

View File

@ -4880,7 +4880,10 @@ void SimonState::playMusic(uint music)
/* FIXME: not properly implemented */
if (_game & GAME_WIN) {
_game_file->seek(_game_offsets_ptr[gss->MUSIC_INDEX_BASE + music] - 1, SEEK_SET);
int32 offset = _game_offsets_ptr[gss->MUSIC_INDEX_BASE + music];
if (_game & GAME_SIMON2)
offset--;
_game_file->seek(offset, SEEK_SET);
File *f = _game_file;
midi.read_all_songs(f);
} else {