diff options
author | rubidium <rubidium@openttd.org> | 2007-06-18 10:48:15 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-06-18 10:48:15 +0000 |
commit | 966e2738b9c97bb44276ec90ebfa4a202d67d715 (patch) | |
tree | e8ff8f3847b0d29507eeef3450ff752e9b318604 /src/tree_cmd.cpp | |
parent | f6be61bb3481419a388d9dcdede16c2b5f77c4a2 (diff) | |
download | openttd-966e2738b9c97bb44276ec90ebfa4a202d67d715.tar.xz |
(svn r10197) -Codechange: replace int32 with CommandCost where appropriate.
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 b4cb5fa38..42598789d 100644 --- a/src/tree_cmd.cpp +++ b/src/tree_cmd.cpp @@ -213,10 +213,10 @@ void GenerateTrees() * @param p1 tree type, -1 means random. * @param p2 end tile of area-drag */ -int32 CmdPlantTree(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) +CommandCost CmdPlantTree(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) { StringID msg = INVALID_STRING_ID; - int32 cost; + CommandCost cost; int ex; int ey; int sx, sy, x, y; @@ -428,7 +428,7 @@ static Slope GetSlopeTileh_Trees(TileIndex tile, Slope tileh) return tileh; } -static int32 ClearTile_Trees(TileIndex tile, byte flags) +static CommandCost ClearTile_Trees(TileIndex tile, byte flags) { uint num; |