diff options
author | frosch <frosch@openttd.org> | 2010-04-14 20:08:55 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-04-14 20:08:55 +0000 |
commit | b858c22a7eda139d10410931f531cd7c0f44b438 (patch) | |
tree | e554c79fbacaab3dff67c7947f1e42ff498b74e0 /src/ai/api | |
parent | aea22529607303aadd138b75b95382c4b3ed02e3 (diff) | |
download | openttd-b858c22a7eda139d10410931f531cd7c0f44b438.tar.xz |
(svn r19635) -Fix (r19634): Forgot AI.
Diffstat (limited to 'src/ai/api')
-rw-r--r-- | src/ai/api/ai_tile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ai/api/ai_tile.cpp b/src/ai/api/ai_tile.cpp index 5ae15b83d..969ba9c0c 100644 --- a/src/ai/api/ai_tile.cpp +++ b/src/ai/api/ai_tile.cpp @@ -248,7 +248,7 @@ { EnforcePrecondition(false, ::IsValidTile(tile)); - return AIObject::DoCommand(tile, UINT_MAX, tile, CMD_PLANT_TREE); + return AIObject::DoCommand(tile, TREE_INVALID, tile, CMD_PLANT_TREE); } /* static */ bool AITile::PlantTreeRectangle(TileIndex tile, uint width, uint height) @@ -258,7 +258,7 @@ EnforcePrecondition(false, height >= 1 && height <= 20); TileIndex end_tile = tile + ::TileDiffXY(width - 1, height - 1); - return AIObject::DoCommand(tile, UINT_MAX, end_tile, CMD_PLANT_TREE); + return AIObject::DoCommand(tile, TREE_INVALID, end_tile, CMD_PLANT_TREE); } /* static */ bool AITile::IsWithinTownInfluence(TileIndex tile, TownID town_id) |