diff options
author | rubidium <rubidium@openttd.org> | 2009-02-09 21:20:05 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-02-09 21:20:05 +0000 |
commit | d846eef0b68474970d7ffe5f1d667d866ddff7a8 (patch) | |
tree | a4f2317ed234736c522ee05672396684eadbc141 /src/waypoint.cpp | |
parent | cd0b38d234c7aa9f9fbfa32243e6cd66f308484a (diff) | |
download | openttd-d846eef0b68474970d7ffe5f1d667d866ddff7a8.tar.xz |
(svn r15434) -Codechange: bit of type safety for the DC_xxx flags.
Diffstat (limited to 'src/waypoint.cpp')
-rw-r--r-- | src/waypoint.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/waypoint.cpp b/src/waypoint.cpp index c614a08e1..81bc5cd86 100644 --- a/src/waypoint.cpp +++ b/src/waypoint.cpp @@ -156,7 +156,7 @@ static Waypoint *FindDeletedWaypointCloseTo(TileIndex tile) * @todo When checking for the tile slope, * distingush between "Flat land required" and "land sloped in wrong direction" */ -CommandCost CmdBuildTrainWaypoint(TileIndex tile, uint32 flags, uint32 p1, uint32 p2, const char *text) +CommandCost CmdBuildTrainWaypoint(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 p2, const char *text) { Waypoint *wp; Slope tileh; @@ -270,7 +270,7 @@ void WaypointsDailyLoop() * @param justremove will indicate if it is removed from rail or if rails are removed too * @return cost of operation or error */ -CommandCost RemoveTrainWaypoint(TileIndex tile, uint32 flags, bool justremove) +CommandCost RemoveTrainWaypoint(TileIndex tile, DoCommandFlag flags, bool justremove) { Waypoint *wp; @@ -318,7 +318,7 @@ CommandCost RemoveTrainWaypoint(TileIndex tile, uint32 flags, bool justremove) * @param p2 unused * @return cost of operation or error */ -CommandCost CmdRemoveTrainWaypoint(TileIndex tile, uint32 flags, uint32 p1, uint32 p2, const char *text) +CommandCost CmdRemoveTrainWaypoint(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 p2, const char *text) { return RemoveTrainWaypoint(tile, flags, true); } @@ -342,7 +342,7 @@ static bool IsUniqueWaypointName(const char *name) * @param p2 unused * @return cost of operation or error */ -CommandCost CmdRenameWaypoint(TileIndex tile, uint32 flags, uint32 p1, uint32 p2, const char *text) +CommandCost CmdRenameWaypoint(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 p2, const char *text) { if (!IsValidWaypointID(p1)) return CMD_ERROR; |