OpenTTD Source 20251005-master-ga617d009cc
|
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 548 of file yapf_rail.cpp.
typedef Types::NodeList::Item CYapfRailBase< Types >::Node |
Definition at line 549 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.
Definition at line 559 of file yapf_rail.cpp.
References ChoiceFollows.