diff options
author | Paul Gilbert | 2009-07-26 09:48:52 +0000 |
---|---|---|
committer | Paul Gilbert | 2009-07-26 09:48:52 +0000 |
commit | ad7762ad16cebc96540e0db9344479158811b1bd (patch) | |
tree | 0a35e7abddc4b3db068a4700237574ea49231442 /engines | |
parent | da4367096e292589fc93c9f1296da260caa91532 (diff) | |
download | scummvm-rg350-ad7762ad16cebc96540e0db9344479158811b1bd.tar.gz scummvm-rg350-ad7762ad16cebc96540e0db9344479158811b1bd.tar.bz2 scummvm-rg350-ad7762ad16cebc96540e0db9344479158811b1bd.zip |
Added a debug line to allow tracking of script execution
svn-id: r42799
Diffstat (limited to 'engines')
-rw-r--r-- | engines/cruise/script.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/cruise/script.cpp b/engines/cruise/script.cpp index 9f89f04069..761bba3673 100644 --- a/engines/cruise/script.cpp +++ b/engines/cruise/script.cpp @@ -23,6 +23,7 @@ * */ +#include "cruise/cruise.h" #include "cruise/cruise_main.h" #include "common/endian.h" @@ -632,7 +633,11 @@ int executeScripts(scriptInstanceStruct *ptr) { #endif opcodeType = getByteFromScript(); - // printf("opType: %d\n",(opcodeType&0xFB)>>3); + debugC(5, kCruiseDebugScript, "Script %s/%d ip=%d opcode=%d", + overlayTable[currentScriptPtr->overlayNumber].overlayName, + currentScriptPtr->scriptNumber, + currentScriptPtr->scriptOffset, + (opcodeType & 0xFB) >> 3); currentScriptOpcodeType = opcodeType & 7; |