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/tree_cmd.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/tree_cmd.cpp')
-rw-r--r-- | src/tree_cmd.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tree_cmd.cpp b/src/tree_cmd.cpp index 7c2365a60..5dc5a00f1 100644 --- a/src/tree_cmd.cpp +++ b/src/tree_cmd.cpp @@ -320,7 +320,7 @@ void GenerateTrees() * @param p1 tree type, -1 means random. * @param p2 end tile of area-drag */ -CommandCost CmdPlantTree(TileIndex tile, uint32 flags, uint32 p1, uint32 p2, const char *text) +CommandCost CmdPlantTree(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 p2, const char *text) { StringID msg = INVALID_STRING_ID; CommandCost cost(EXPENSES_OTHER); @@ -526,7 +526,7 @@ static Foundation GetFoundation_Trees(TileIndex tile, Slope tileh) return FOUNDATION_NONE; } -static CommandCost ClearTile_Trees(TileIndex tile, byte flags) +static CommandCost ClearTile_Trees(TileIndex tile, DoCommandFlag flags) { uint num; @@ -762,7 +762,7 @@ void InitializeTrees() _trees_tick_ctr = 0; } -static CommandCost TerraformTile_Trees(TileIndex tile, uint32 flags, uint z_new, Slope tileh_new) +static CommandCost TerraformTile_Trees(TileIndex tile, DoCommandFlag flags, uint z_new, Slope tileh_new) { return DoCommand(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR); } |