diff options
author | Joost Peters | 2009-03-23 20:20:00 +0000 |
---|---|---|
committer | Joost Peters | 2009-03-23 20:20:00 +0000 |
commit | 9ed052f38e0786246b7184005420a045cf23d6e6 (patch) | |
tree | 65719d5e39d39aeecc76a77ac8cc398c631c53c5 | |
parent | e8ccbd93ed2f8e1b781ff051430be364011bcb81 (diff) | |
download | scummvm-rg350-9ed052f38e0786246b7184005420a045cf23d6e6.tar.gz scummvm-rg350-9ed052f38e0786246b7184005420a045cf23d6e6.tar.bz2 scummvm-rg350-9ed052f38e0786246b7184005420a045cf23d6e6.zip |
change debug output of script interpreter to more clearly print script number and offset
svn-id: r39640
-rw-r--r-- | engines/sky/logic.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/sky/logic.cpp b/engines/sky/logic.cpp index 41e7be8c30..20b82feafd 100644 --- a/engines/sky/logic.cpp +++ b/engines/sky/logic.cpp @@ -1242,7 +1242,6 @@ script: /// low level interface to interpreter uint16 moduleNo = scriptNo >> 12; - debug(3, "Doing Script %x", (offset << 16) | scriptNo); uint16 *scriptData = _moduleList[moduleNo]; // get module address if (!scriptData) { // We need to load the script module @@ -1252,11 +1251,13 @@ script: uint16 *moduleStart = scriptData; + debug(3, "Doing Script: %d:%d:%x", moduleNo, scriptNo & 0xFFF, offset ? (offset - moduleStart[scriptNo & 0xFFF]) : 0); + // Check whether we have an offset or what if (offset) scriptData = moduleStart + offset; else - scriptData += scriptData[scriptNo & 0x0fff]; + scriptData += scriptData[scriptNo & 0x0FFF]; uint32 a = 0, b = 0, c = 0; uint16 command, s; |