Mercurial > hg > openttd
changeset 15020:a864a5a396ed draft
(svn r19635) -Fix (r19634): Forgot AI.
author | frosch <frosch@openttd.org> |
---|---|
date | Wed, 14 Apr 2010 20:08:55 +0000 |
parents | 26df377a8d35 |
children | 69d2f575deb7 |
files | src/ai/api/ai_tile.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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)