aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorFilippos Karapetis2009-10-21 19:23:37 +0000
committerFilippos Karapetis2009-10-21 19:23:37 +0000
commit033910c6af95e38bb6d70a38588ee47455672505 (patch)
tree28732b84f4654f33b44040d5b32e919e0b681ccc /engines/sci
parentb105d690e398b47063b332245a783190f2cc84de (diff)
downloadscummvm-rg350-033910c6af95e38bb6d70a38588ee47455672505.tar.gz
scummvm-rg350-033910c6af95e38bb6d70a38588ee47455672505.tar.bz2
scummvm-rg350-033910c6af95e38bb6d70a38588ee47455672505.zip
Removed the accidental inclusion of deprecated code for LSL5 - this has been superseded by commit 45297
svn-id: r45311
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/engine/vm.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/engines/sci/engine/vm.cpp b/engines/sci/engine/vm.cpp
index bf526e284f..d54f29293f 100644
--- a/engines/sci/engine/vm.cpp
+++ b/engines/sci/engine/vm.cpp
@@ -1608,7 +1608,6 @@ int script_instantiate_sci0(ResourceManager *resMan, SegManager *segMan, int scr
objlength = 0;
reg.offset = magic_pos_adder; // Reset counter
- reg_t egoClass = segMan->findObjectByName("Ego");
do {
reg_t addr;
@@ -1639,25 +1638,6 @@ int script_instantiate_sci0(ResourceManager *resMan, SegManager *segMan, int scr
obj->_baseObj = baseObj->_baseObj;
obj->setSuperClassSelector(INST_LOOKUP_CLASS(obj->getSuperClassSelector().offset));
-
- // Check if the game is trying to change an object that has Ego as its superclass
- if (!egoClass.isNull() && obj->getSuperClassSelector() == egoClass) {
- reg_t stopGroopPos = segMan->findObjectByName("stopGroop");
- debugC(2, "ego changed, updating stopGroop");
-
- // Notify the stopGroop object that Ego changed
- if (!stopGroopPos.isNull()) {
- Object *stopGroopObj = segMan->getObject(stopGroopPos);
-
- // Find the client member variable, and update it
- ObjVarRef varp;
- if (lookup_selector(segMan, stopGroopPos, ((SciEngine*)g_engine)->getKernel()->_selectorCache.client, &varp, NULL) == kSelectorVariable) {
- reg_t *clientVar = varp.getPointer(segMan);
- *clientVar = addr;
- }
- }
-
- }
} // if object or class
break;
case SCI_OBJ_POINTERS: // A relocation table