aboutsummaryrefslogtreecommitdiff
path: root/scumm/script.cpp
diff options
context:
space:
mode:
authorMax Horn2002-12-23 18:37:56 +0000
committerMax Horn2002-12-23 18:37:56 +0000
commit6d0fd3989ce1636e960b72d104bad4c1e665478a (patch)
tree785c9aa1132751bc2ab00b2429b0f28dcc488b67 /scumm/script.cpp
parent654ed3ff6cca3d40705110acc2f5ef1c5e4695c7 (diff)
downloadscummvm-rg350-6d0fd3989ce1636e960b72d104bad4c1e665478a.tar.gz
scummvm-rg350-6d0fd3989ce1636e960b72d104bad4c1e665478a.tar.bz2
scummvm-rg350-6d0fd3989ce1636e960b72d104bad4c1e665478a.zip
fix jumpTrue/jumpFalse opcodes; slightly better debug output
svn-id: r6075
Diffstat (limited to 'scumm/script.cpp')
-rw-r--r--scumm/script.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/scumm/script.cpp b/scumm/script.cpp
index 1da366d007..a70a5b81c7 100644
--- a/scumm/script.cpp
+++ b/scumm/script.cpp
@@ -281,7 +281,11 @@ void Scumm::executeScript()
_opcode = fetchScriptByte();
_scriptPointerStart = _scriptPointer;
vm.slot[_currentScript].didexec = 1;
- debug(8, "Script %d: [%X] %s()", vm.slot[_currentScript].number, _opcode, getOpcodeDesc(_opcode));
+ debug(0, "Script %d, offset 0x%x: [%X] %s()",
+ vm.slot[_currentScript].number,
+ _scriptPointer - _scriptOrgPointer,
+ _opcode,
+ getOpcodeDesc(_opcode));
executeOpcode(_opcode);
}
CHECK_HEAP;