mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-19 20:19:18 +02:00
cross switch detection for map manual control
This commit is contained in:
@@ -1209,6 +1209,14 @@ void TTrack::get_map_active_paths(map_colored_paths &handles)
|
||||
}
|
||||
}
|
||||
|
||||
void TTrack::get_map_paths_for_state(map_colored_paths &handles, int state)
|
||||
{
|
||||
if (iCategoryFlag != 1 || eType != tt_Switch)
|
||||
return;
|
||||
|
||||
handles.highlighted.push_back(SwitchExtension->map_geometry[state]);
|
||||
}
|
||||
|
||||
void TTrack::get_map_future_paths(map_colored_paths &handles) {
|
||||
if (iCategoryFlag != 1)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user