VOYEUR: Fix for parsePlayCommands command 9

This commit is contained in:
Paul Gilbert 2013-12-13 23:03:25 -05:00
parent b80d0e9aa3
commit 208c5aa6b7
2 changed files with 6 additions and 2 deletions

View File

@ -348,6 +348,8 @@ void ThreadResource::parsePlayCommands() {
for (int parseIndex = 0; parseIndex < _parseCount; ++parseIndex) {
uint16 id = READ_LE_UINT16(dataP);
debugC(DEBUG_BASIC, kDebugScripts, "parsePlayCommands (%d of %d) - cmd #%d",
parseIndex, _parseCount, id);
dataP += 2;
switch (id) {
@ -606,8 +608,9 @@ void ThreadResource::parsePlayCommands() {
while (_vm->_voy._arr5[idx][v3] != 9999)
++idx;
_vm->_voy._arr5[idx][v3] = READ_LE_UINT16(dataP + 4) + READ_LE_UINT16(dataP + 6);
_vm->_voy._arr6[idx][v3] = v3;
v2 = READ_LE_UINT16(dataP + 4);
_vm->_voy._arr5[idx][v3] = v2;
_vm->_voy._arr6[idx][v3] = v2 + READ_LE_UINT16(dataP + 6) - 2;
}
dataP += 8;

View File

@ -38,6 +38,7 @@ VoyeurEngine::VoyeurEngine(OSystem *syst, const VoyeurGameDescription *gameDesc)
_defaultFontInfo(3, 0xff, 0xff, 0, 0, ALIGN_LEFT, 0, Common::Point(), 1, 1,
Common::Point(1, 1), 1, 0, 0) {
DebugMan.addDebugChannel(kDebugPath, "Path", "Pathfinding debug level");
DebugMan.addDebugChannel(kDebugScripts, "scripts", "Game scripts");
_bVoy = NULL;
_iForceDeath = -1;
_controlPtr = NULL;