change debug output of script interpreter to more clearly print script number and offset

svn-id: r39640
This commit is contained in:
Joost Peters 2009-03-23 20:20:00 +00:00
parent e8ccbd93ed
commit 9ed052f38e

View File

@ -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;