mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 06:39:17 +00:00
VOYEUR: Fix for parsePlayCommands command 9
This commit is contained in:
parent
b80d0e9aa3
commit
208c5aa6b7
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user