porymap icon indicating copy to clipboard operation
porymap copied to clipboard

Fix API crashes on bad palette ids / tile numbers

Open GriffinRichards opened this issue 1 year ago • 1 comments

The scripting API functions createImage, addTileImage, and both versions of setMetatileTile and setMetatileTiles can crash Porymap or give unexpected behavior if given a bad palette or tile number.

GriffinRichards avatar Jul 27 '22 17:07 GriffinRichards

Tacking on a fix for map.setOverlayOpacity. The opacity of the cursor rectangle and map grid were affected as well now that they're rendered after the overlay items.

GriffinRichards avatar Aug 02 '22 22:08 GriffinRichards

Merging with https://github.com/huderlem/porymap/pull/448

GriffinRichards avatar Aug 26 '22 23:08 GriffinRichards