Repository navigation
City bars: no stale bars after they are hidden - #166
Open
MortenLyhr wants to merge 1 commit into
Open
MortenLyhr wants to merge 1 commit into
MortenLyhr wants to merge 1 commit into
Conversation
drawOverlay cleared the city bars' rectangles only after its early return, so on the city screen (or with the banners or cities off, or on the globe) cityBarAt kept matching the bars of the last map frame: a click on the plots where a city's bar had been went to the city instead of the plot under it. The rectangles are now cleared before that return. Also takes two notes of earlier behaviour out of comments (the tilt curve's straight line, the river cells' old cost), as CONTRIBUTING asks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Follow-up to the review of #145: #145 (comment)
MapView::drawOverlaycleared the city bars' rectangles only after its early return. While the city screen is up (or with banners or cities off, or on the globe) no bars are drawn, butcityBarAtstill matched the rectangles from the last map frame. A click on the plots where a city's bar had been went to that city instead of the plot under the pointer. On the city screen that meant a click a couple of plots north of the city acted on the city plot instead of working that tile.The rectangles are now cleared before the early return, so with no bars drawn there are none to click.
Also, as asked in the review of #145: two comments no longer describe earlier behaviour (the tilt curve in
MapWindow::updatePitch, the river cells inMapView).Checks
--keys, TestMap, Roma at 40,36, 1600×900): the camera on 40,33 puts Roma's bar at the top of the window; Roma's screen is opened and the pixels where the bar was are clicked. Before: plot 40,36 (the city) all three times. After: plot 40,38, the plot under the pointer.--turns 100 --map Fractal --size STANDARD --seed 7):D7D43800, unchanged.cityBars.clear(). Whichever merges second has a one-line conflict there; keep a singleclear()at the top ofdrawOverlay.🤖 Generated with Claude Code