npf.c
changeset 2164 74c8163d1e14
parent 2163 637ec3c361f5
child 2182 89e6e39734a4
--- a/npf.c	Fri Jul 22 07:02:20 2005 +0000
+++ b/npf.c	Fri Jul 22 08:40:19 2005 +0000
@@ -525,7 +525,7 @@
 			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);
 			}