aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2009-04-23 19:11:01 +0000
committerFilippos Karapetis2009-04-23 19:11:01 +0000
commit001699becbe2d8e6124051ac588095acca385d01 (patch)
tree01a3ea8946e5564bd49a7021c0cb29d18c3b2d91
parentefc28c1be6b344a72cd1011a20ba2924515de334 (diff)
downloadscummvm-rg350-001699becbe2d8e6124051ac588095acca385d01.tar.gz
scummvm-rg350-001699becbe2d8e6124051ac588095acca385d01.tar.bz2
scummvm-rg350-001699becbe2d8e6124051ac588095acca385d01.zip
Removed a FIXME concerning CanBeHere and CantBeHere and added an explanation. Also, removed some unused code.
svn-id: r40094
-rw-r--r--engines/sci/engine/kernel.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/engines/sci/engine/kernel.cpp b/engines/sci/engine/kernel.cpp
index 667ae917e6..182f0c8408 100644
--- a/engines/sci/engine/kernel.cpp
+++ b/engines/sci/engine/kernel.cpp
@@ -142,8 +142,9 @@ SciKernelFunction kfunct_mappers[] = {
/*4e*/ DEFUN("ReadNumber", kReadNumber, "r"),
/*4f*/ DEFUN("BaseSetter", kBaseSetter, "o"),
/*50*/ DEFUN("DirLoop", kDirLoop, "oi"),
+ // Opcode 51 is defined twice for a reason. Older SCI versions
+ // call CanBeHere, whereas newer ones its inverse, CantBeHere
/*51*/ DEFUN("CanBeHere", kCanBeHere, "ol*"),
- // FIXME: The number 0x51 occurs twice :-)
/*51*/ DEFUN("CantBeHere", kCanBeHere, "ol*"),
/*52*/ DEFUN("OnControl", kOnControl, "i*"),
/*53*/ DEFUN("InitBresen", kInitBresen, "oi*"),
@@ -173,13 +174,8 @@ SciKernelFunction kfunct_mappers[] = {
/*6b*/ DEFUN("FlushResources", kFlushResources, "i"),
/*6c*/ DEFUN("TimesSin", kTimesSin, "ii"),
/*6d*/ DEFUN("TimesCos", kTimesCos, "ii"),
-#if 0
- /*6e*/ NOFUN(NULL),
- /*6f*/ NOFUN(NULL),
-#else
/*6e*/ DEFUN("6e", kTimesSin, "ii"),
/*6f*/ DEFUN("6f", kTimesCos, "ii"),
-#endif
/*70*/ DEFUN("Graph", kGraph, ".*"),
/*71*/ DEFUN("Joystick", kJoystick, ".*"),
/*72*/ NOFUN(NULL),