This website requires JavaScript.
Issues
Task board
Repositories
Sign In
eu07
/
maszyna
Watch
17
Star
0
Fork
0
You've already forked maszyna
mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced
2026-10-31 20:29:04 +01:00
Code
Issues
156
Wiki
Activity
Files
89b6ca07af7c5482fa835ba42248b70542abd4b1
maszyna
/
application
/
editormodeselftestswitch.cpp
maj00r
476909581f
fix(track): two switches laid right after one another, with no plain track between them, are joined, the vehicles no longer derail there: only the plain tracks looked for their neighbours, so the end of the main track of one switch at the start of the next one was joined to nothing, and an axle getting to it ran onto a track made to derail it. TTrack::join_switches joins the free ends of a switch to the ends of other switches in the same points, on both sides, with the codes of the ends the axles go on by: the end of either path of one at the start of the other, two facing at their starts, two meeting at their ends; done once the plain tracks are joined as the scenery is loaded, the old sceneries too, and as the editor joins a switch laid. Selftest pathwalk walks the tracks as an axle does: P2 to P1, P4 to P1, start to start and end to end go through either way
2026-10-26 20:40:51 +01:00
35 KiB
Raw
Blame
History
View Raw
Reference in New Issue
View Git Blame
Copy Permalink