From e23f76b74277dd625ca67048c5ad95095d495cdd Mon Sep 17 00:00:00 2001 From: Jamieson Christian Date: Sat, 24 May 2003 03:26:12 +0000 Subject: Hack to prevent bad music looping at end of simon1win svn-id: r7875 --- simon/simon.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'simon') diff --git a/simon/simon.cpp b/simon/simon.cpp index 70a14d3a47..acbdb18d6d 100644 --- a/simon/simon.cpp +++ b/simon/simon.cpp @@ -5310,6 +5310,14 @@ void SimonState::loadMusic (uint music) { midi.setLoop (true); // Must do this BEFORE loading music. (GMF may have its own override.) if (_game & GF_WIN) { + // FIXME: The very last music resource, a cymbal crash for when the + // two golems... er... gargoyles crash into each other, should NOT + // be looped like the other music tracks. In simon1dos the GMF + // resource includes a loop override that acomplishes this, but + // there seems to be nothing for this in the SMF resources. + if (music == 35) + midi.setLoop (false); + _game_file->seek(_game_offsets_ptr[gss->MUSIC_INDEX_BASE + music], SEEK_SET); midi.loadMultipleSMF (_game_file); } else if (_game & GF_TALKIE) { -- cgit v1.2.3