aboutsummaryrefslogtreecommitdiffstats
path: root/SL0P.md
diff options
context:
space:
mode:
authorAsh Ketchum <no-reply@sl0p.foo>2026-07-15 15:46:49 +0200
committerAsh Ketchum <no-reply@sl0p.foo>2026-07-15 15:46:49 +0200
commit92856fd4b4908939ff4998a84369d4b9ac097b7a (patch)
tree371eb1bd39053eddca367cabaebbeaefc52d396a /SL0P.md
parentSAVER: wander straight until blocked, and fix the edge-freeze (diff)
downloadpokeyellow-92856fd4b4908939ff4998a84369d4b9ac097b7a.tar.gz
pokeyellow-92856fd4b4908939ff4998a84369d4b9ac097b7a.tar.xz
pokeyellow-92856fd4b4908939ff4998a84369d4b9ac097b7a.zip
EXPLORE/SAVER: clamp camera into map bounds after a connection cross
Crossing a map connection applies the connection's alignment offset blindly. At an edge position the connection doesn't span, the resulting coord lands outside the neighbour (e.g. Y = -8 = $f8), and since the bounds checks then operate on the wrapped value the camera roams far outside the map, rendering whatever WRAM lies past wOverworldMap as on-screen garbage. SlopClampCoords (run in .renderView, i.e. after every entry/cross LoadMapData) clamps wYCoord to [0,maxY] and wXCoord to [0,maxX] of the freshly-loaded map. Verified: 120-sample saver soak across 19 maps -> 0 out-of-bounds; manual EXPLORE crossing unaffected.
Diffstat (limited to 'SL0P.md')
0 files changed, 0 insertions, 0 deletions