Fix refresh after elevator transition (#561)

For some RPU elevator transitions, I was seeing the screen partially not update.  This was due to rejecting the setCenterTile due scroll blockers (I think).  This turns those off if EDG support is enabled.

This also seems to fix some of the jittery scrolling I was seeing in diagonal areas like SF
This commit is contained in:
Mike Klaas
2026-07-17 20:35:38 -07:00
committed by GitHub
parent aa439efd04
commit aac42c162c
+3 -2
View File
@@ -613,8 +613,9 @@ int tileSetCenter(int tile, int flags)
int tile_x = gHexGridWidth - 1 - tile % gHexGridWidth;
int tile_y = tile / gHexGridWidth;
// Global tile borders are always checked, unless scroll blocking is disabled.
if (gTileBorderInitialized && gTileScrollBlockingEnabled) {
// Legacy global borders are for maps without EDG data. EDG maps use their
// own boundary/clamp logic above, which can validly land on this border.
if ((!edgeActive || !mapEdgeZoneIsSelected()) && gTileBorderInitialized && gTileScrollBlockingEnabled) {
if (tile_x <= gTileBorderMinX || tile_x >= gTileBorderMaxX || tile_y <= gTileBorderMinY || tile_y >= gTileBorderMaxY) {
return -1;
}