Ticket #8230: runobjectscript.patch

File runobjectscript.patch, 862 bytes (added by SF/madm00se, 22 years ago)

runObjectScript patch

  • script.cpp

    RCS file: /cvsroot/scummvm/scummvm/scumm/script.cpp,v
    retrieving revision 1.97
    diff -u -r1.97 script.cpp
     
    8484        if (!object)
    8585                return;
    8686
     87  if (_features & GF_AFTER_V2 && entry == 250) {
     88    // The code also sets the upper two bits in the script
     89    // object type, but I (MadMoose) can't see where we use that.
     90    entry = 253;
     91  }
     92
    8793        if (!recursive)
    8894                stopObjectScript(object);
    8995
     
    98104        slot = getScriptSlot();
    99105
    100106        offs = getVerbEntrypoint(object, entry);
    101         if (offs == 0)
     107        if (offs == 0) {
     108                warning("Code for entry %d, object %d in room %d not found", entry, object, _roomResource);
    102109                return;
     110  }
    103111
    104112        s = &vm.slot[slot];
    105113        s->number = object;