aboutsummaryrefslogtreecommitdiff
path: root/engines/voyeur
diff options
context:
space:
mode:
authorPaul Gilbert2014-01-29 22:02:00 -0500
committerPaul Gilbert2014-01-29 22:02:00 -0500
commitf2af864c6b76d2d2348bb2d70d7ce738487a3033 (patch)
treeff9f6e0ab56f7da2f6de0c2f5916f088441ef750 /engines/voyeur
parentdacdca192df99e4a29c32bf275f529be3959a11b (diff)
downloadscummvm-rg350-f2af864c6b76d2d2348bb2d70d7ce738487a3033.tar.gz
scummvm-rg350-f2af864c6b76d2d2348bb2d70d7ce738487a3033.tar.bz2
scummvm-rg350-f2af864c6b76d2d2348bb2d70d7ce738487a3033.zip
VOYEUR: Bugfixes for initializing audio events
Diffstat (limited to 'engines/voyeur')
-rw-r--r--engines/voyeur/files_threads.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/voyeur/files_threads.cpp b/engines/voyeur/files_threads.cpp
index a7e69c90c2..5920ca0f54 100644
--- a/engines/voyeur/files_threads.cpp
+++ b/engines/voyeur/files_threads.cpp
@@ -373,7 +373,7 @@ void ThreadResource::parsePlayCommands() {
v2 = READ_LE_UINT16(dataP);
if (v2 == 0 || READ_LE_UINT16(_vm->_controlPtr->_ptr + 4) == 0) {
- _vm->_videoId = READ_LE_UINT16(dataP + 2);
+ _vm->_videoId = READ_LE_UINT16(dataP + 2) - 1;
_vm->_voy._field468 = READ_LE_UINT16(dataP + 4);
_vm->_voy._field46A = READ_LE_UINT16(dataP + 6);
@@ -385,6 +385,7 @@ void ThreadResource::parsePlayCommands() {
_vm->_voy.addAudioEventStart();
assert(_vm->_videoId < 38);
+ _vm->_bVoy->getBoltGroup(0x7F00);
_vm->_graphicsManager._backgroundPage = _vm->_bVoy->boltEntry(
0x7F00 + BLIND_TABLE[_vm->_videoId])._picResource;
_vm->_graphicsManager._backColors = _vm->_bVoy->boltEntry(0x7F01 +