aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAsh Ketchum <no-reply@sl0p.foo>2026-07-15 15:35:32 +0200
committerAsh Ketchum <no-reply@sl0p.foo>2026-07-15 15:35:32 +0200
commit038a9bdb6e3520912477d254177e91be179ce813 (patch)
tree9dfcb8b1987466c3366f548cf494cf1bab5b5b2e /scripts
parentSL0P menu: add SAVER screensaver (autopilot EXPLORE) (diff)
downloadpokeyellow-038a9bdb6e3520912477d254177e91be179ce813.tar.gz
pokeyellow-038a9bdb6e3520912477d254177e91be179ce813.tar.xz
pokeyellow-038a9bdb6e3520912477d254177e91be179ce813.zip
SAVER: wander straight until blocked, and fix the edge-freeze
- Drop the occasional junction turn: keep the current heading until it is actually blocked, then turn onto a random non-U-turn direction. - Fix a freeze: a map's far edge (maxY/maxX = wCurrentMap*2 - 1) is always odd, but scroll moves round down to even coords, so the camera stops one coord short and 'coord != max' never flagged the edge as blocked -> the wander got stuck clamping forever. SlopValidDirMask now treats a direction as open only if there are >= 2 coords of room (one even step) or a connection to cross.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions