You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If B&CR's first build is a straight plain piece of track (tile 9) in hex F15, then it should be able to build in G16. But it is only being given options to build in its other two home hexes, D15 and E14. The code for calculating available builds is probably confused because there are no revenue centres to trace a route from.
The text was updated successfully, but these errors were encountered:
Engine::Graph compute does a couple of things when home_as_token is set.
Each home hex is added to the hexes array.
Each town or city in a home hex is added to the nodes array.
The node walk starts from the items in the nodes array, so if there is plain track in one of the home hexes then this will not somewhere that is considered.
A plain track tile doesn't have anything that inherits from Engine::Part::Node. Need to think of a way to add this hex to the walk list.
If a plain track tile was built in a private company's home hex, then
the graph computed did not follow this track, unless it was connected to
a town or city. See issue #7.
This commit creates a new node class to represent these plain track
paths. These are added to the node list in the graph and they are then
included in the walk list.
This might not be safe if this code was being used for evaluating train
routes, but this will only ever be considered for track lays by private
companies, or checking connections between private and major companies.
If B&CR's first build is a straight plain piece of track (tile 9) in hex F15, then it should be able to build in G16. But it is only being given options to build in its other two home hexes, D15 and E14. The code for calculating available builds is probably confused because there are no revenue centres to trace a route from.
The text was updated successfully, but these errors were encountered: