aboutsummaryrefslogtreecommitdiff
path: root/engines/cruise/function.cpp
diff options
context:
space:
mode:
authorVincent Hamm2007-11-10 23:20:47 +0000
committerVincent Hamm2007-11-10 23:20:47 +0000
commit31d04d98dcfe9113b39520568bde07737a718f09 (patch)
tree781043539df858c82e033fb8f6783dfdf3cac958 /engines/cruise/function.cpp
parent24303fb953a41f42cf312a69c1152e4ea56e4f94 (diff)
downloadscummvm-rg350-31d04d98dcfe9113b39520568bde07737a718f09.tar.gz
scummvm-rg350-31d04d98dcfe9113b39520568bde07737a718f09.tar.bz2
scummvm-rg350-31d04d98dcfe9113b39520568bde07737a718f09.zip
Fix relocation of objects relations
svn-id: r29472
Diffstat (limited to 'engines/cruise/function.cpp')
-rw-r--r--engines/cruise/function.cpp8
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 {