forked from mirror/OpenTTD
(svn r2674) - CodeChange: [pbs] Generalise the PSBISPbsDepot function so it can check if an arbitrary junction is a pbs junction. Preparations for making pbs more safe.
This commit is contained in:
2
npf.c
2
npf.c
@@ -525,7 +525,7 @@ static int32 NPFRailPathCost(AyStar* as, AyStarNode* current, OpenListNode* pare
|
||||
if (NPFGetFlag(current, NPF_FLAG_PBS_BLOCKED)) {
|
||||
cost += 1000;
|
||||
}
|
||||
if (PBSIsPbsDepot(tile)) {
|
||||
if (PBSIsPbsSegment(tile, ReverseTrackdir(trackdir))) {
|
||||
NPFSetFlag(current, NPF_FLAG_PBS_EXIT, true);
|
||||
NPFSetFlag(current, NPF_FLAG_SEEN_SIGNAL, true);
|
||||
}
|
||||
|
Reference in New Issue
Block a user