mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-01 08:48:21 +01:00
(svn r19635) -Fix (r19634): Forgot AI.
This commit is contained in:
parent
aea2252960
commit
b858c22a7e
@ -248,7 +248,7 @@
|
|||||||
{
|
{
|
||||||
EnforcePrecondition(false, ::IsValidTile(tile));
|
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)
|
/* static */ bool AITile::PlantTreeRectangle(TileIndex tile, uint width, uint height)
|
||||||
@ -258,7 +258,7 @@
|
|||||||
EnforcePrecondition(false, height >= 1 && height <= 20);
|
EnforcePrecondition(false, height >= 1 && height <= 20);
|
||||||
TileIndex end_tile = tile + ::TileDiffXY(width - 1, height - 1);
|
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)
|
/* static */ bool AITile::IsWithinTownInfluence(TileIndex tile, TownID town_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user