Changeset - r15010:138f96dbbe6f
[Not reviewed]
master
0 1 0
frosch - 14 years ago 2010-04-14 20:08:55
frosch@openttd.org
(svn r19635) -Fix (r19634): Forgot AI.
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/ai/api/ai_tile.cpp
Show inline comments
 
@@ -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)
0 comments (0 inline, 0 general)