diff options
author | Paul Gilbert | 2013-12-13 23:13:35 -0500 |
---|---|---|
committer | Paul Gilbert | 2013-12-13 23:13:35 -0500 |
commit | b9bd380a29cff9e1ad3a11b47dbc273630c740a4 (patch) | |
tree | 311ec621a506bec65cab020fd884bbf6f925e5ad /engines | |
parent | 208c5aa6b75f31135fda7af7484b17ca1b14c82d (diff) | |
download | scummvm-rg350-b9bd380a29cff9e1ad3a11b47dbc273630c740a4.tar.gz scummvm-rg350-b9bd380a29cff9e1ad3a11b47dbc273630c740a4.tar.bz2 scummvm-rg350-b9bd380a29cff9e1ad3a11b47dbc273630c740a4.zip |
VOYEUR: Fixes for parsePlayCommands command 7
Diffstat (limited to 'engines')
-rw-r--r-- | engines/voyeur/files_threads.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
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; |