From c666cf5a4914626227d7a47153893362302f22c7 Mon Sep 17 00:00:00 2001 From: truebrain Date: Mon, 12 Jan 2009 18:15:18 +0000 Subject: (svn r15036) -Fix: use the same value for 'random' through-out the code for PlantTree --- src/ai/api/ai_tile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ai') diff --git a/src/ai/api/ai_tile.cpp b/src/ai/api/ai_tile.cpp index 868cc679a..fd694373f 100644 --- a/src/ai/api/ai_tile.cpp +++ b/src/ai/api/ai_tile.cpp @@ -213,7 +213,7 @@ { EnforcePrecondition(false, ::IsValidTile(tile)); - return AIObject::DoCommand(tile, -1, tile, CMD_PLANT_TREE); + return AIObject::DoCommand(tile, UINT_MAX, tile, CMD_PLANT_TREE); } /* static */ bool AITile::PlantTreeRectangle(TileIndex tile, uint width, uint height) @@ -223,7 +223,7 @@ EnforcePrecondition(false, height >= 1 && height <= 20); TileIndex end_tile = tile + ::TileDiffXY(width - 1, height - 1); - return AIObject::DoCommand(tile, -1, end_tile, CMD_PLANT_TREE); + return AIObject::DoCommand(tile, UINT_MAX, end_tile, CMD_PLANT_TREE); } /* static */ bool AITile::IsWithinTownInfluence(TileIndex tile, TownID town_id) -- cgit v1.2.3-70-g09d2