diff options
Diffstat (limited to 'engines/cruise/function.cpp')
-rw-r--r-- | engines/cruise/function.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/cruise/function.cpp b/engines/cruise/function.cpp index 74984289a0..b05d80874d 100644 --- a/engines/cruise/function.cpp +++ b/engines/cruise/function.cpp @@ -30,6 +30,8 @@ namespace Cruise { +//#define FUNCTION_DEBUG + opcodeFunction opcodeTablePtr[256]; int16 Op_LoadOverlay(void) { @@ -521,6 +523,10 @@ int16 Op_InitializeState(void) { if (!ovlIdx) ovlIdx = currentScriptPtr->overlayNumber; +#ifdef FUNCTION_DEBUG + printf("Init %s state to %d\n", getObjectName(objIdx, overlayTable[ovlIdx].ovlData->arrayNameObj), param1); +#endif + objInit(ovlIdx, objIdx, param1); return (0); @@ -1582,7 +1588,7 @@ int32 opcodeType8(void) { return (-21); if (opcodeTablePtr[opcode]) { - printf("Function: %d\n",opcode); + // printf("Function: %d\n",opcode); pushVar(opcodeTablePtr[opcode] ()); return (0); } else { |