equal
deleted
inserted
replaced
2 |
2 |
3 /** @file ai_tile.cpp Implementation of AITile. */ |
3 /** @file ai_tile.cpp Implementation of AITile. */ |
4 |
4 |
5 #include "ai_tile.hpp" |
5 #include "ai_tile.hpp" |
6 #include "ai_map.hpp" |
6 #include "ai_map.hpp" |
|
7 #include "ai_town.hpp" |
7 #include "../../openttd.h" |
8 #include "../../openttd.h" |
8 #include "../../tile_map.h" |
9 #include "../../tile_map.h" |
9 #include "../../map_func.h" |
10 #include "../../map_func.h" |
10 #include "../../variables.h" |
11 #include "../../variables.h" |
11 #include "../../station_func.h" |
12 #include "../../station_func.h" |
148 { |
149 { |
149 EnforcePrecondition(false, ::IsValidTile(tile)); |
150 EnforcePrecondition(false, ::IsValidTile(tile)); |
150 |
151 |
151 return AIObject::DoCommand(tile, 0, 0, CMD_LANDSCAPE_CLEAR); |
152 return AIObject::DoCommand(tile, 0, 0, CMD_LANDSCAPE_CLEAR); |
152 } |
153 } |
|
154 |
|
155 /* static */ bool AITile::IsWithinTownInfluence(TileIndex tile, TownID town_id) |
|
156 { |
|
157 return AITown::IsWithinTownInfluence(town_id, tile); |
|
158 } |