diff options
author | Max Horn | 2003-07-23 09:41:21 +0000 |
---|---|---|
committer | Max Horn | 2003-07-23 09:41:21 +0000 |
commit | dad1586dafd07d290ec9036049273d702ea0d288 (patch) | |
tree | 34fa9b4b99d3a9b34774a042a24a5dd8c55d2846 /backends/sdl | |
parent | 2b0e1b70001d4a502edff00f28401baba66d7299 (diff) | |
download | scummvm-rg350-dad1586dafd07d290ec9036049273d702ea0d288.tar.gz scummvm-rg350-dad1586dafd07d290ec9036049273d702ea0d288.tar.bz2 scummvm-rg350-dad1586dafd07d290ec9036049273d702ea0d288.zip |
reset some CD related vars when AudioCD is opened
svn-id: r9144
Diffstat (limited to 'backends/sdl')
-rw-r--r-- | backends/sdl/sdl-common.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/backends/sdl/sdl-common.cpp b/backends/sdl/sdl-common.cpp index f39525893c..84d80f3ca8 100644 --- a/backends/sdl/sdl-common.cpp +++ b/backends/sdl/sdl-common.cpp @@ -915,6 +915,10 @@ uint32 OSystem_SDL_Common::property(int param, Property *value) { /* Did if open? Check if _cdrom is NULL */ if (!_cdrom) { warning("Couldn't open drive: %s\n", SDL_GetError()); + } else { + cd_num_loops = 0; + cd_stop_time = 0; + cd_end_time = 0; } } break; @@ -1098,7 +1102,7 @@ void OSystem_SDL_Common::play_cdrom(int track, int num_loops, int start_frame, i return; if (duration > 0) - duration +=5; + duration += 5; cd_track = track; cd_num_loops = num_loops; |