Ticket #4581: fw-fix.diff

File fw-fix.diff, 614 bytes (added by eriktorbjorn, 12 years ago)

Patch against 1.0 branch

  • engines/cine/script_fw.cpp

     
    18411841}
    18421842
    18431843int16 getZoneFromPositionRaw(byte *page, int16 x, int16 y, int16 width) {
     1844        // WORKAROUND for bug #2848940. The engine is probably trying to get
     1845        // the zone for the protagonist's feet, which are outside the screen.
     1846
     1847        if (x < 0)
     1848                x = 0;
     1849        else if (x > 319)
     1850                x = 319;
     1851
     1852        if (y < 0)
     1853                y = 0;
     1854        else if (y > 199)
     1855                y = 199;
     1856
    18441857        byte *ptr = page + (y * width) + x;
    18451858        byte zoneVar;
    18461859