Ticket #4581: fw-fix.diff
File fw-fix.diff, 614 bytes (added by , 15 years ago) |
---|
-
engines/cine/script_fw.cpp
1841 1841 } 1842 1842 1843 1843 int16 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 1844 1857 byte *ptr = page + (y * width) + x; 1845 1858 byte zoneVar; 1846 1859