summaryrefslogtreecommitdiff
path: root/npf.c
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2006-03-31 19:10:54 +0000
committercelestar <celestar@openttd.org>2006-03-31 19:10:54 +0000
commit2ab5b8e666d14df7437bfa01a78f7ade3af69fa5 (patch)
treeb1afcd4a3ffa7895ccd33c4d034fb543b8d4765f /npf.c
parentbb8bdcb5d91bf76c164813fc8d2d27f86bd3da76 (diff)
downloadopenttd-2ab5b8e666d14df7437bfa01a78f7ade3af69fa5.tar.xz
(svn r4215) -Codechange: Renamed *RoadStation* functions to *RoadStop* and moved them to station_map.h to keep consistency
Diffstat (limited to 'npf.c')
-rw-r--r--npf.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/npf.c b/npf.c
index 2c7bd06ca..3d1e6c145 100644
--- a/npf.c
+++ b/npf.c
@@ -459,7 +459,7 @@ static bool VehicleMayEnterTile(Owner owner, TileIndex tile, DiagDirection enter
if (IsTileType(tile, MP_RAILWAY) || /* Rail tile (also rail depot) */
IsTrainStationTile(tile) || /* Rail station tile */
IsTileDepotType(tile, TRANSPORT_ROAD) || /* Road depot tile */
- IsRoadStationTile(tile) || /* Road station tile */
+ IsRoadStopTile(tile) || /* Road station tile */
IsTileDepotType(tile, TRANSPORT_WATER)) { /* Water depot tile */
return IsTileOwner(tile, owner); /* You need to own these tiles entirely to use them */
}
@@ -533,15 +533,15 @@ static void NPFFollowTrack(AyStar* aystar, OpenListNode* current)
* otherwise we wouldn't have got here. It is also facing us,
* so we should skip it's body */
dst_tile = GetOtherTunnelEnd(src_tile);
- } else if (type != TRANSPORT_WATER && (IsRoadStationTile(src_tile) || IsTileDepotType(src_tile, type))) {
+ } else if (type != TRANSPORT_WATER && (IsRoadStopTile(src_tile) || IsTileDepotType(src_tile, type))) {
/* This is a road station or a train or road depot. We can enter and exit
* those from one side only. Trackdirs don't support that (yet), so we'll
* do this here. */
DiagDirection exitdir;
/* Find out the exit direction first */
- if (IsRoadStationTile(src_tile)) {
- exitdir = GetRoadStationDir(src_tile);
+ if (IsRoadStopTile(src_tile)) {
+ exitdir = GetRoadStopDir(src_tile);
} else { /* Train or road depot */
exitdir = GetDepotDirection(src_tile, type);
}
@@ -597,11 +597,11 @@ static void NPFFollowTrack(AyStar* aystar, OpenListNode* current)
}
/* Determine available tracks */
- if (type != TRANSPORT_WATER && (IsRoadStationTile(dst_tile) || IsTileDepotType(dst_tile, type))){
+ if (type != TRANSPORT_WATER && (IsRoadStopTile(dst_tile) || IsTileDepotType(dst_tile, type))){
/* Road stations and road and train depots return 0 on GTTS, so we have to do this by hand... */
DiagDirection exitdir;
- if (IsRoadStationTile(dst_tile)) {
- exitdir = GetRoadStationDir(dst_tile);
+ if (IsRoadStopTile(dst_tile)) {
+ exitdir = GetRoadStopDir(dst_tile);
} else { /* Road or train depot */
exitdir = GetDepotDirection(dst_tile, type);
}