src/pathfind.cpp
changeset 6012 065d7234a7a9
parent 5733 388bb9dcb79b
child 6172 e6d7a5b3d63f
equal deleted inserted replaced
6011:04cd7c7f1d64 6012:065d7234a7a9
   294 
   294 
   295 	// check if the new tile can be entered from that direction
   295 	// check if the new tile can be entered from that direction
   296 	if (tpf->tracktype == TRANSPORT_ROAD) {
   296 	if (tpf->tracktype == TRANSPORT_ROAD) {
   297 		// road stops and depots now have a track (r4419)
   297 		// road stops and depots now have a track (r4419)
   298 		// don't enter road stop from the back
   298 		// don't enter road stop from the back
   299 		if (IsRoadStopTile(tile) && ReverseDiagDir(GetRoadStopDir(tile)) != direction) return;
   299 		if (IsStandardRoadStopTile(tile) && ReverseDiagDir(GetRoadStopDir(tile)) != direction) return;
   300 		// don't enter road depot from the back
   300 		// don't enter road depot from the back
   301 		if (IsTileDepotType(tile, TRANSPORT_ROAD) && ReverseDiagDir(GetRoadDepotDirection(tile)) != direction) return;
   301 		if (IsTileDepotType(tile, TRANSPORT_ROAD) && ReverseDiagDir(GetRoadDepotDirection(tile)) != direction) return;
   302 	}
   302 	}
   303 
   303 
   304 	/* Check if the new tile is a tunnel or bridge head and that the direction
   304 	/* Check if the new tile is a tunnel or bridge head and that the direction