From 98c6b02135d435df2cc2223f5bac481956efe63c Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Mon, 30 Apr 2018 19:11:32 -0400 Subject: XEEN: Fix CD track voice playback in World of Xeen CD Talkie --- engines/xeen/scripts.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/xeen/scripts.cpp') diff --git a/engines/xeen/scripts.cpp b/engines/xeen/scripts.cpp index 581b3e1b70..05450c2a58 100644 --- a/engines/xeen/scripts.cpp +++ b/engines/xeen/scripts.cpp @@ -1469,10 +1469,10 @@ bool Scripts::cmdFlipWorld(ParamsIterator ¶ms) { bool Scripts::cmdPlayCD(ParamsIterator ¶ms) { int trackNum = params.readByte(); - int start = params.readUint16LE(); - int finish = params.readUint16LE(); + int start = params.readUint16LE() * 60 / 75; + int finish = params.readUint16LE() * 60 / 75; - g_system->getAudioCDManager()->play(trackNum, 1, start, finish); + g_system->getAudioCDManager()->play(trackNum, 1, start, finish - start); return true; } -- cgit v1.2.3