Skip to content

Junctions a chrono scenario puts in have lanes in the line editor and the AI lanes view - #148

Merged
turbo-devv merged 1 commit into
mainfrom
fix/chrono-lanes
Nov 25, 2026
Merged

turbo-devv merged 1 commit into
mainfrom
fix/chrono-lanes

Conversation

@turbo-devv

Copy link
Copy Markdown
Contributor

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

… 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
@turbo-devv
turbo-devv merged commit fb587aa into main Nov 25, 2026
4 checks passed
@turbo-devv
turbo-devv deleted the fix/chrono-lanes branch November 25, 2026 16:55
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
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.

AI lines not showing at many junctions

1 participant