diff options
author | smatz <smatz@openttd.org> | 2008-09-09 12:26:25 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-09-09 12:26:25 +0000 |
commit | f503c7c99e5322ea68336d9fa48c208722df9668 (patch) | |
tree | 6bd21c91c8943ef78a3129350c28c9e50daccb89 /src/waypoint.cpp | |
parent | a527d237aa3af230dd95447916822985ae1c1e11 (diff) | |
download | openttd-f503c7c99e5322ea68336d9fa48c208722df9668.tar.xz |
(svn r14280) -Codechange: use IsRailWaypointTile() instead of IsTileType() and IsRailWaypoint() checks at several places
Diffstat (limited to 'src/waypoint.cpp')
-rw-r--r-- | src/waypoint.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/waypoint.cpp b/src/waypoint.cpp index 3d6ed983e..e36668db6 100644 --- a/src/waypoint.cpp +++ b/src/waypoint.cpp @@ -309,8 +309,7 @@ CommandCost RemoveTrainWaypoint(TileIndex tile, uint32 flags, bool justremove) Waypoint *wp; /* Make sure it's a waypoint */ - if (!IsTileType(tile, MP_RAILWAY) || - !IsRailWaypoint(tile) || + if (!IsRailWaypointTile(tile) || (!CheckTileOwnership(tile) && _current_player != OWNER_WATER) || !EnsureNoVehicleOnGround(tile)) { return CMD_ERROR; |