From b9bd380a29cff9e1ad3a11b47dbc273630c740a4 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Fri, 13 Dec 2013 23:13:35 -0500 Subject: VOYEUR: Fixes for parsePlayCommands command 7 --- engines/voyeur/files_threads.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'engines') diff --git a/engines/voyeur/files_threads.cpp b/engines/voyeur/files_threads.cpp index 3880893c29..195e05d71f 100644 --- a/engines/voyeur/files_threads.cpp +++ b/engines/voyeur/files_threads.cpp @@ -333,7 +333,7 @@ void ThreadResource::parsePlayCommands() { _vm->_voy._field478 &= ~8; _vm->_eventsManager._videoDead = -1; - Common::fill(&_vm->_voy._arr1[0][0], &_vm->_voy._arr1[8][20], 0); + Common::fill(&_vm->_voy._arr1[0][0], &_vm->_voy._arr1[8][20], 9999); Common::fill(&_vm->_voy._arr2[0][0], &_vm->_voy._arr2[8][20], 0); Common::fill(&_vm->_voy._arr3[0][0], &_vm->_voy._arr3[3][20], 9999); Common::fill(&_vm->_voy._arr4[0][0], &_vm->_voy._arr4[3][20], 0); @@ -576,8 +576,9 @@ void ThreadResource::parsePlayCommands() { while (_vm->_voy._arr1[idx][v3] != 9999) ++idx; - _vm->_voy._arr1[idx][v3] = READ_LE_UINT16(dataP + 4) + READ_LE_UINT16(dataP + 6); - _vm->_voy._arr2[idx][v3] = v3; + v2 = READ_LE_UINT16(dataP + 4); + _vm->_voy._arr1[idx][v3] = v2; + _vm->_voy._arr2[idx][v3] = v2 + READ_LE_UINT16(dataP + 6) - 2; } dataP += 8; -- cgit v1.2.3