summaryrefslogtreecommitdiff
path: root/npf.c
diff options
context:
space:
mode:
authorhackykid <hackykid@openttd.org>2005-07-22 08:40:19 +0000
committerhackykid <hackykid@openttd.org>2005-07-22 08:40:19 +0000
commitaa29ee6eda861ceac08d226a6d7e1de5dae74749 (patch)
treea3caf79bf281e825af72f9b3c43114b86409cb9a /npf.c
parent559babcdc96d5e2de5e964c9d9b6109e4cfbcffc (diff)
downloadopenttd-aa29ee6eda861ceac08d226a6d7e1de5dae74749.tar.xz
(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.
Diffstat (limited to 'npf.c')
-rw-r--r--npf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/npf.c b/npf.c
index 6bbaefcf2..66d370136 100644
--- a/npf.c
+++ b/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);
}