aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2003-09-10 22:35:35 +0000
committerMax Horn2003-09-10 22:35:35 +0000
commitfaf32582410a13e51b66cedba340e0b52df089b3 (patch)
tree36dbd7794745bc43c4e3475d799075209d590bd6
parent87dd04e038e570c3b3c009a2c6e2387a650ce268 (diff)
downloadscummvm-rg350-faf32582410a13e51b66cedba340e0b52df089b3.tar.gz
scummvm-rg350-faf32582410a13e51b66cedba340e0b52df089b3.tar.bz2
scummvm-rg350-faf32582410a13e51b66cedba340e0b52df089b3.zip
cleanup
svn-id: r10162
-rw-r--r--scumm/script_v5.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/script_v5.cpp b/scumm/script_v5.cpp
index 3a633511df..ef939b7b2d 100644
--- a/scumm/script_v5.cpp
+++ b/scumm/script_v5.cpp
@@ -2749,15 +2749,15 @@ void Scumm_v5::decodeParseString() {
int delay = (uint16)getVarOrDirectWord(0x40);
if (_gameId == GID_LOOM256) {
- VAR(VAR_MUSIC_TIMER) = 0;
if (offset == 0 && delay == 0) {
+ VAR(VAR_MUSIC_TIMER) = 0;
_sound->stopCD();
} else {
// Loom specified the offset from the start of the CD;
// thus we have to subtract the length of the first track
// (22500 frames) plus the 2 second = 150 frame leadin.
// I.e. in total 22650 frames.
- offset = (int)(offset * 7.5 - 22650);
+ offset = (int)(offset * 7.5 - 22500 - 2*75);
// Slightly increase the delay (5 frames = 1/25 of a second).
// This noticably improves the experience in Loom CD.