diff options
| author | Ash Ketchum <no-reply@sl0p.foo> | 2026-07-15 15:35:32 +0200 |
|---|---|---|
| committer | Ash Ketchum <no-reply@sl0p.foo> | 2026-07-15 15:35:32 +0200 |
| commit | 038a9bdb6e3520912477d254177e91be179ce813 (patch) | |
| tree | 9dfcb8b1987466c3366f548cf494cf1bab5b5b2e /engine/debug | |
| parent | SL0P menu: add SAVER screensaver (autopilot EXPLORE) (diff) | |
| download | pokeyellow-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 'engine/debug')
0 files changed, 0 insertions, 0 deletions
