aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Bacca2002-04-07 01:58:59 +0000
committerNicolas Bacca2002-04-07 01:58:59 +0000
commit6f2da5c673017132248ccd2f1604bf8868605226 (patch)
treeaaf5a4a5317fcf902fae7f93d2f1d12bb8b0e963
parentfacec50a490a716c5c578d2e43a378fcd5fc21d0 (diff)
downloadscummvm-rg350-6f2da5c673017132248ccd2f1604bf8868605226.tar.gz
scummvm-rg350-6f2da5c673017132248ccd2f1604bf8868605226.tar.bz2
scummvm-rg350-6f2da5c673017132248ccd2f1604bf8868605226.zip
fix Audio CD version oops
svn-id: r3886
-rw-r--r--sdl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/sdl.cpp b/sdl.cpp
index ad70594d95..3118631397 100644
--- a/sdl.cpp
+++ b/sdl.cpp
@@ -678,8 +678,12 @@ static int cd_track, cd_num_loops = 0, cd_start_frame, cd_end_frame;
static Uint32 cd_end_time, cd_stop_time, cd_next_second;
void cd_play(Scumm *s, int track, int num_loops, int start_frame, int end_frame) {
+
scumm->_vars[14] = 0;
+ if (!start_frame && !end_frame)
+ return;
+
#ifdef COMPRESSED_SOUND_FILE
if (mp3_cd_play(s, track, num_loops, start_frame, end_frame))