Repository navigation
The Go To path as the original draws it - #108
Open
MortenLyhr wants to merge 2 commits into
Open
MortenLyhr wants to merge 2 commits into
MortenLyhr wants to merge 2 commits into
Conversation
This was referenced Nov 21, 2026
White dots on the ground every 0.2 plot, sliding the way the units go; at each turn's end the original's waypoint ring laid on the ground, turning, with the turns in its number font and an arrow along the way. The last ring red for an attack, a red ring alone where they cannot go, green rings without numbers for Route To. Measured in Wine (backlog bssth#47). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…de changes Wine shows a worker's road with one green ring, at its end. The way is now found again when the interface mode changes (Alt+R with the mouse still). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MortenLyhr
force-pushed
the
fix/goto-path-look
branch
from
November 23, 2026 08:59
37ae321 to
e0ff430
Compare
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.
With a unit selected and the right button held over a plot (or in Go To, or Route To), OpenCiv4 drew a line with small numbered discs. The original draws something else; this draws it the same way, from the original's own art:
Art/Units/Selection Effect/CircleDot.dds) laid on the ground every 0.2 plot from the units to the target. They slide along the way at 0.1 plot a second.GroundSelectionWaypoint.ddslies flat on the ground, 0.66 plot wide, and turns clockwise at 45° a second. The number of turns stands upright over it in the game's number font (res/Fonts/NumberFont-Sylfaen64px.tga), 0.185 plot tall.GroundSelectionWaypointArrow.dds, 0.13 plot, 0.4 plot out from the ring's centre. It points along the way on from that ring; the last ring's points along the way in.COLOR_RED/COLOR_GREEN):A stack, a ship and the Go To mode (G) look the same as one unit with the right button held.
Measured in Wine (BUG + BULL, 1600x900):
Wine | before | after (each picture: the original, OpenCiv4 master, this PR):
Two turns, close:







Attack (the last ring red):
No way there (a peak):
Around the peak, six turns:
Route To (Alt+R):
A stack:
A galley onto land:
Not done here:
select-gal-coast): OpenCiv4 finds no way there, before and after alike, where Wine does. This is on the game side, not in this drawing, and is left for a case of its own.Merging with #97 (Route To):
main.cppconflicts on theifthat finds the way. Keep #97's lines and add|| pathMode != pathFoundInto its condition.Checks
8b7d8557).--turns 100 --map Fractal --size STANDARD --seed 7) equal to master's on all 100 turns (D7D43800): interface only.CvPlot::isVisibleEnemyUnit(PlayerTypes)(the attack test) isDllExport, so the Windows build links.🤖 Generated with Claude Code