Repository navigation
Junctions a chrono scenario puts in have lanes in the line editor and the AI lanes view - #148
Merged
Merged
Conversation
… the AI lanes view The view draws each tile with the chrono scenarios active today laid over, but the timetable's road network and the AI lanes overlay read the tile alone: on a map that builds its current roads through chrono (Grande Porto 2022), the junctions added that way had no paths, so a line's way could not be picked through them and no lanes showed there. Both now read the tile as the game and the view have it. Fixes #147
yumin278
added a commit
to yumin278/openMapper
that referenced
this pull request
Nov 26, 2026
Upstream 0.2.4: turn objects about X/Y/Z after R (openOMSI-org#143), link/unlink a whole selection (openOMSI-org#144), Tab on an object leaves no copy (openOMSI-org#145), crossing editor on an object with no path (openOMSI-org#146), chrono-scenario junctions have lanes (openOMSI-org#148), a road drawn a few metres off a junction's middle comes in as its own arm (openOMSI-org#149), mlua 0.12 and crate bumps. Conflicts: timetable/tests.rs (both sides added tests at the end: both kept); ui_crossing.rs open_on (upstream's doc comment, the fork's `&mut Editor`). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EKEDShKtx9Ra18DUzjJ8Tj
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.
The view draws each tile with the chrono scenarios active today laid over (
TileDoc::display), but the timetable's road network (Network::build) and the AI lanes overlay (lanes::near,lanes::tips) read the bare tile. On a map that builds its current roads through chrono, such as Grande Porto 2022, the junctions added that way had no paths: no lanes showed there and a line's way could not be picked through them.Both now read the tile as the game and the view have it.
Test:
a_junction_put_in_by_a_chrono_scenario_has_lanes(fails without the change).Fixes #147