Ticket #831: actor_distance.diff

File actor_distance.diff, 825 bytes (added by eriktorbjorn, 21 years ago)

Patch against a May 30 CVS snapshot

  • scummvm/scumm/object.cpp

    diff -ur ScummVM+orig/scummvm/scumm/object.cpp ScummVM+hack/scummvm/scumm/object.cpp
    old new  
    264264
    265265        if (y > x)
    266266                x = y;
    267         return x;
     267        return (_features & GF_AFTER_V2) ? x / 8 : x;
    268268}
    269269
    270270int Scumm::findObject(int x, int y) {
  • scummvm/scumm/script_v5.cpp

    diff -ur ScummVM+orig/scummvm/scumm/script_v5.cpp ScummVM+hack/scummvm/scumm/script_v5.cpp
    old new  
    10531053        if (_gameId == GID_MONKEY2 && vm.slot[_currentScript].number == 40 && r < 60)
    10541054                r = 60;
    10551055
    1056         if (_features & GF_AFTER_V2)
    1057                 r /= 8;
    1058 
    10591056        setResult(r);
    10601057}
    10611058