From ff7e0b2586b4fbc0ef747df274b3b3641bd40509 Mon Sep 17 00:00:00 2001 From: smatz Date: Tue, 9 Sep 2008 12:26:25 +0000 Subject: (svn r14280) -Codechange: use IsRailWaypointTile() instead of IsTileType() and IsRailWaypoint() checks at several places --- src/waypoint.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/waypoint.cpp') 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; -- cgit v1.2.3-54-g00ecf