diff options
Diffstat (limited to 'src/waypoint_cmd.cpp')
-rw-r--r-- | src/waypoint_cmd.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/waypoint_cmd.cpp b/src/waypoint_cmd.cpp index da64f5aba..8d5492178 100644 --- a/src/waypoint_cmd.cpp +++ b/src/waypoint_cmd.cpp @@ -91,7 +91,7 @@ Axis GetAxisForNewWaypoint(TileIndex tile) } } -CommandCost ClearTile_Station(TileIndex tile, DoCommandFlag flags); +extern CommandCost ClearTile_Station(TileIndex tile, DoCommandFlag flags); /** * Check whether the given tile is suitable for a waypoint. @@ -366,7 +366,11 @@ CommandCost RemoveBuoy(TileIndex tile, DoCommandFlag flags) return CommandCost(EXPENSES_CONSTRUCTION, _price[PR_CLEAR_WAYPOINT_BUOY]); } - +/** + * Check whether the name is unique amongst the waypoints. + * @param name The name to check. + * @return True iff the name is unique. + */ static bool IsUniqueWaypointName(const char *name) { const Waypoint *wp; |