aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backends/sdl/sdl-common.cpp4
-rw-r--r--scumm/script_v5.cpp2
-rw-r--r--scumm/sound.cpp2
3 files changed, 6 insertions, 2 deletions
diff --git a/backends/sdl/sdl-common.cpp b/backends/sdl/sdl-common.cpp
index f39525893c..3d9d6c794e 100644
--- a/backends/sdl/sdl-common.cpp
+++ b/backends/sdl/sdl-common.cpp
@@ -106,6 +106,10 @@ OSystem_SDL_Common::OSystem_SDL_Common()
// reset mouse state
memset(&km, 0, sizeof(km));
+ cd_end_time = 0;
+ cd_num_loops = 0;
+ cd_duration = 0;
+ cd_stop_time = 0;
}
OSystem_SDL_Common::~OSystem_SDL_Common() {
diff --git a/scumm/script_v5.cpp b/scumm/script_v5.cpp
index cca3d1ab86..2e6777609c 100644
--- a/scumm/script_v5.cpp
+++ b/scumm/script_v5.cpp
@@ -2044,7 +2044,7 @@ void Scumm_v5::o5_startMusic() {
break;
}
warning("unknown: o5_startMusic(%d)", b);
- setResult(0);
+ setResult(result);
} else {
_sound->addSoundToQueue(getVarOrDirectByte(0x80));
}
diff --git a/scumm/sound.cpp b/scumm/sound.cpp
index 0a7eefaeca..98361cb816 100644
--- a/scumm/sound.cpp
+++ b/scumm/sound.cpp
@@ -470,7 +470,7 @@ void Sound::playSound(int soundID) {
}
- if (_scumm->_gameId == GID_LOOM && (READ_LE_UINT16(ptr + 4) == 'so')) {
+ if (_scumm->_gameId == GID_LOOM) {
// Mac version of Loom uses yet another sound format
/*
playSound #9 (room 70)