Repository navigation
Fix colony radar minimap staying stale after construction and other building changes - #1281
Merged
akarnokd merged 1 commit intoAug 5, 2026
Conversation
Cache the full radar image per lighting alpha again, and rebuild when a building-state snapshot (id + minimap tile kind) changes, so construction and related updates stay correct without redrawing every frame.
🐷 TruffleHog + Entropy Beauty ScanAverage entropy of changed code: 4.416 bits/char Changed files entropy: ✅ No secrets or suspicious high-entropy strings found. Mid-4 beauty heuristic in action — powered by our entropy chats! 😊 |
akarnokd
approved these changes
Aug 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
(buildingId, tileKind)pairs (constructing / damaged / normal / inoperable / …), compares it to the previous snapshot, and rebuilds only on a difference. Pavement / planet switch / place / demolish still callinvalidate()explicitly.How the bug happened
#1259 stopped redrawing the radar every frame. #1261 cached one image per lighting alpha and stopped treating day/night as a full dirty. Simulator-driven look changes (construction done, damage/repair, power) did not clear that cache for the current alpha, so the radar could stay wrong until lighting moved on.
How we fixed it
radar.invalidate().Note
I finished the main campaign. This was the only bug I found related to my recent changes, so I don’t expect further follow-ups from me.
Tested