summaryrefslogtreecommitdiff
path: root/src/tree_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-10-14 18:38:51 +0000
committerrubidium <rubidium@openttd.org>2008-10-14 18:38:51 +0000
commit272b2ef0e9072c6bf2ee3083c3673ae7773462ab (patch)
treea41b987e5fdc223ac9abf159f9ee753f07f2234d /src/tree_cmd.cpp
parent03bef3fb5b1c25cc887d51e13fd81c7c5129028b (diff)
downloadopenttd-272b2ef0e9072c6bf2ee3083c3673ae7773462ab.tar.xz
(svn r14464) -Codechange: replace (uint)-1 with UINT_MAX (PhilSophus)
Diffstat (limited to 'src/tree_cmd.cpp')
-rw-r--r--src/tree_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tree_cmd.cpp b/src/tree_cmd.cpp
index 0a728dd3f..bedd9573a 100644
--- a/src/tree_cmd.cpp
+++ b/src/tree_cmd.cpp
@@ -333,7 +333,7 @@ CommandCost CmdPlantTree(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
if (p2 >= MapSize()) return CMD_ERROR;
/* Check the tree type. It can be random or some valid value within the current climate */
- if (p1 != (uint)-1 && p1 - _tree_base_by_landscape[_settings_game.game_creation.landscape] >= _tree_count_by_landscape[_settings_game.game_creation.landscape]) return CMD_ERROR;
+ if (p1 != UINT_MAX && p1 - _tree_base_by_landscape[_settings_game.game_creation.landscape] >= _tree_count_by_landscape[_settings_game.game_creation.landscape]) return CMD_ERROR;
// make sure sx,sy are smaller than ex,ey
ex = TileX(tile);