(svn r15039) -Codechange: fix comments regarding old AI, remove one old AI hack

This commit is contained in:
smatz
2009-01-12 19:49:23 +00:00
parent 2c89bfbc81
commit 26e5ccb60d
5 changed files with 8 additions and 19 deletions

View File

@@ -923,8 +923,7 @@ static CommandCost ClearTile_Road(TileIndex tile, byte flags)
case ROAD_TILE_NORMAL: {
RoadBits b = GetAllRoadBits(tile);
/* Clear the road if only one piece is on the tile OR the AI tries
* to clear town road OR we are not using the DC_AUTO flag */
/* Clear the road if only one piece is on the tile OR we are not using the DC_AUTO flag */
if ((CountBits(b) == 1 && GetRoadBits(tile, ROADTYPE_TRAM) == ROAD_NONE) || !(flags & DC_AUTO)) {
RoadTypes rts = GetRoadTypes(tile);
CommandCost ret(EXPENSES_CONSTRUCTION);