porymap
porymap copied to clipboard
Fix API crashes on bad palette ids / tile numbers
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.
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.
Merging with https://github.com/huderlem/porymap/pull/448