pathfind.c
changeset 5028 1dbceed7bedc
parent 4631 584a6da986b0
child 5380 8ea58542b6e0
--- a/pathfind.c	Sun Nov 05 12:22:46 2006 +0000
+++ b/pathfind.c	Sun Nov 05 18:42:25 2006 +0000
@@ -294,9 +294,9 @@
 	if (tpf->tracktype == TRANSPORT_ROAD) {
 		// road stops and depots now have a track (r4419)
 		// don't enter road stop from the back
-		if (IsRoadStopTile(tile) && GetRoadStopDir(tile) == direction) return;
+		if (IsRoadStopTile(tile) && ReverseDiagDir(GetRoadStopDir(tile)) != direction) return;
 		// don't enter road depot from the back
-		if (IsTileDepotType(tile, TRANSPORT_ROAD) && GetRoadDepotDirection(tile) == direction) return;
+		if (IsTileDepotType(tile, TRANSPORT_ROAD) && ReverseDiagDir(GetRoadDepotDirection(tile)) != direction) return;
 	}
 
 	tpf->rd.cur_length++;