Skip to content

Fix minimap not being centred correctly and refactor for readability#3190

Merged
AaronVanGeffen merged 6 commits intoOpenLoco:masterfrom
AaronVanGeffen:map-window
Aug 8, 2025
Merged

Fix minimap not being centred correctly and refactor for readability#3190
AaronVanGeffen merged 6 commits intoOpenLoco:masterfrom
AaronVanGeffen:map-window

Conversation

@AaronVanGeffen
Copy link
Copy Markdown
Member

@AaronVanGeffen AaronVanGeffen commented Aug 6, 2025

This started out as an attempt to figuring out why the map window's initial scroll position overshoots.

The actual bug ended up not having to do with the logic in centerOnViewPoint, but due to reading variables from the template widgets instead of the window's actual ones. (See the final commit 318c8bf for the actual fix.)

Counterpart in our sister project: OpenRCT2/OpenRCT2#24905

Before

Screenshot (1)

After

Screenshot

@AaronVanGeffen AaronVanGeffen changed the title Refactor MapWindow::centerOnViewPoint for readability Fix minimap not being centred correctly and refactor for readability Aug 8, 2025
@AaronVanGeffen AaronVanGeffen added this to the v25.07+ milestone Aug 8, 2025
@AaronVanGeffen AaronVanGeffen enabled auto-merge (squash) August 8, 2025 13:21
@AaronVanGeffen AaronVanGeffen merged commit 3a4a0a8 into OpenLoco:master Aug 8, 2025
10 checks passed
@AaronVanGeffen AaronVanGeffen deleted the map-window branch August 8, 2025 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants