summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-09-09 12:26:25 +0000
committersmatz <smatz@openttd.org>2008-09-09 12:26:25 +0000
commitf503c7c99e5322ea68336d9fa48c208722df9668 (patch)
tree6bd21c91c8943ef78a3129350c28c9e50daccb89 /src/openttd.cpp
parenta527d237aa3af230dd95447916822985ae1c1e11 (diff)
downloadopenttd-f503c7c99e5322ea68336d9fa48c208722df9668.tar.xz
(svn r14280) -Codechange: use IsRailWaypointTile() instead of IsTileType() and IsRailWaypoint() checks at several places
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index 73589937c..e37e60627 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -2539,9 +2539,8 @@ bool AfterLoadGame()
/* Give owners to waypoints, based on rail tracks it is sitting on.
* If none is available, specify OWNER_NONE */
Waypoint *wp;
- Owner owner;
FOR_ALL_WAYPOINTS(wp) {
- owner = (IsTileType(wp->xy, MP_RAILWAY) && IsRailWaypoint(wp->xy) ? GetTileOwner(wp->xy) : OWNER_NONE);
+ Owner owner = (IsRailWaypointTile(wp->xy) ? GetTileOwner(wp->xy) : OWNER_NONE);
wp->owner = IsValidPlayerID(owner) ? owner : OWNER_NONE;
}
}