Ticket #8140: indy3-trains.diff

File indy3-trains.diff, 1.0 KB (added by eriktorbjorn, 21 years ago)

Patch against a December 5 CVS snapshot

  • scummvm/scumm/object.cpp

    diff -ur ScummVM-cvs20021205/scummvm/scumm/object.cpp ScummVM-cvs20021205+hack/scummvm/scumm/object.cpp
    old new  
    3838
    3939                if (cls == 32)                                                  // CLASS_TOUCHABLE
    4040                        cls = 24;
    41 
    42                 if (_gameId == GID_INDY3_256 && cls == 22 && _currentRoom == 76)                        // Masking fix for Indy3
    43                         cls = 21;
    4441        }
    4542        return (_classData[obj] & (1 << (cls - 1))) != 0;
    4643}
     
    5956                if (cls == 32)                                                  // CLASS_TOUCHABLE
    6057                        cls = 24;
    6158
    62                 if (_gameId == GID_INDY3_256 && cls == 22 && _currentRoom == 76)                        // Masking fix for Indy3
    63                         cls = 21;
     59                // FIXME: It isn't enough for the Indy3 intro to make the
     60                // little trains ignore boxes (class 22), they have to always
     61                // clip (class 21) as well. Is this yet another walkbox 0
     62                // error?
     63                if (_gameId == GID_INDY3_256 && cls == 22 && _currentRoom == 76)
     64                        putClass(obj, 21, set);
    6465        }
    6566
    6667        if (set)