Ticket #8090: ft-scale.diff

File ft-scale.diff, 1.1 KB (added by eriktorbjorn, 22 years ago)

Patch against an October 12 CVS snapshot

  • scummvm/scumm/actor.cpp

    diff -ur ScummVM-cvs20021012/scummvm/scumm/actor.cpp ScummVM-cvs20021012+hack/scummvm/scumm/actor.cpp
    old new  
    373373                scale = resptr[theY];
    374374        }
    375375
     376        // FIXME - Quick fix to ft's fuel tower bug (by yazoo)
     377        //
     378        // Ben's Y position can be anything between 272 and 398 inclusive
     379        // (which by the way means that we're always looking at the same
     380        // element in the scale table... hmmm...)
     381        //
     382        // When standing at the bottom of the ladder, Ben's Y position is
     383        // 356, and by the looks of it he ought to be unscaled there.
     384
     385        if (scale == 1 && _vm->_currentRoom == 76) {
     386                scale = 0xff;
     387                if (y < 356)
     388                        scale -= 2 * (356 - y);
     389        }
     390
    376391        if (scale > 255)
    377392                warning("Actor %d at %d, scale %d out of range", number, y, scale);
    378393
    379         // FIXME - Quick fix to ft's fuel tower bug (by yazoo)
    380         if (scale == 1 && _vm->_currentRoom == 76)
    381                 scale = 0xFF;
    382 
    383394        scalex = (byte)scale;
    384395        scaley = (byte)scale;
    385396}