|
OpenTTD Source 20260421-master-gc2fbc6fdeb
|
Public Types | |
| typedef Types::NodeList::Item | Node |
Public Member Functions | |
| void | PruneIntermediateNodeBranch (Node *n) |
| In some cases an intermediate node branch should be pruned. | |
Definition at line 564 of file yapf_rail.cpp.
| typedef Types::NodeList::Item CYapfRailBase< Types >::Node |
Definition at line 565 of file yapf_rail.cpp.
|
inline |
In some cases an intermediate node branch should be pruned.
The most prominent case is when a red EOL signal is encountered, but there was a segment change (e.g. a rail type change) before that. If the branch would not be pruned, the rail type change location would remain the best intermediate node, and thus the vehicle would still go towards the red EOL signal.
| n | The node to start pruning at. |
Definition at line 576 of file yapf_rail.cpp.
References ChoiceFollows.