aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPeter Helbing2018-05-08 20:25:09 +0900
committerPeter Helbing2018-05-08 20:28:29 +0900
commitccc4ec963fad5f69f2b303b60e0fe611b19b7892 (patch)
tree5d522c87426b7f9fc8fff98a935e9fcfa9ee0d2b /engines
parent25736a0b5dc0749eef7610198f83c0b9f56be467 (diff)
downloadscummvm-rg350-ccc4ec963fad5f69f2b303b60e0fe611b19b7892.tar.gz
scummvm-rg350-ccc4ec963fad5f69f2b303b60e0fe611b19b7892.tar.bz2
scummvm-rg350-ccc4ec963fad5f69f2b303b60e0fe611b19b7892.zip
XEEN: Fix voice playback from track 31
Track 31 is on the first cd, but contains speech for Darkside content (e.g. Ellinger). It is referenced as track 31, so the offset must not be added.
Diffstat (limited to 'engines')
-rw-r--r--engines/xeen/scripts.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/xeen/scripts.cpp b/engines/xeen/scripts.cpp
index a243951f16..ee55ffeeff 100644
--- a/engines/xeen/scripts.cpp
+++ b/engines/xeen/scripts.cpp
@@ -1478,7 +1478,7 @@ bool Scripts::cmdPlayCD(ParamsIterator &params) {
int finish = params.readUint16LE();
debugC(3, kDebugScripts, "cmdPlayCD Track=%d start=%d finish=%d", trackNum, start, finish);
- if (_vm->_files->_ccNum)
+ if (_vm->_files->_ccNum && trackNum < 31)
trackNum += 30;
assert(trackNum <= 60);