Ticket #1266: indy3towns.patch

File indy3towns.patch, 784 bytes (added by fingolfin, 21 years ago)

Workaround attempt #1

  • scumm/script_v5.cpp

    RCS file: /cvsroot/scummvm/scummvm/scumm/script_v5.cpp,v
    retrieving revision 1.198
    diff -u -d -r1.198 script_v5.cpp
     
    13881388void ScummEngine_v5::o5_lessOrEqual() {
    13891389        int16 a = getVar();
    13901390        int16 b = getVarOrDirectWord(0x80);
     1391
     1392        // WORKAROUND bug #820507 : Work around a bug in Indy3Town.
     1393        if (_gameId == GID_INDY3 && (_features & GF_FMTOWNS) &&
     1394            (vm.slot[_currentScript].number == 200 || vm.slot[_currentScript].number == 203) &&
     1395            _currentRoom == 70 && b == -256) {
     1396            o5_jumpRelative();
     1397            return;
     1398        }
     1399
    13911400        if (b <= a)
    13921401                ignoreScriptWord();
    13931402        else