From 8476b767f92dcd9b3a04a236ed4c8ec5efaa8a16 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 23 Nov 2006 06:50:44 +0000 Subject: Fix crashes on unimplemented music/sfx in Amiga/Atari versions. svn-id: r24769 --- engines/cine/script.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'engines/cine/script.cpp') diff --git a/engines/cine/script.cpp b/engines/cine/script.cpp index b33b9fc3ba..8bcd9b78b1 100644 --- a/engines/cine/script.cpp +++ b/engines/cine/script.cpp @@ -1691,7 +1691,8 @@ void o1_loadMusic() { debugC(5, kCineDebugScript, "Line: %d: loadMusic(%s)", _currentLine, param); - if (g_cine->getPlatform() == Common::kPlatformAmiga) { + if (g_cine->getPlatform() == Common::kPlatformAmiga || + g_cine->getPlatform() == Common::kPlatformAtariST) { warning("STUB: o1_loadMusic"); return; } @@ -1748,6 +1749,12 @@ void o1_playSample() { int16 volume = getNextWord(); uint16 flag = getNextWord(); + if (g_cine->getPlatform() == Common::kPlatformAmiga || + g_cine->getPlatform() == Common::kPlatformAtariST) { + warning("STUB: o1_playSample"); + return; + } + if (volume > 63) volume = 63; if (volume < 0) -- cgit v1.2.3