Codechange: Replace old non-standard attributes with C++17/20 standard attributes.
This commit is contained in:
@@ -1599,7 +1599,7 @@ static void GrowTownInTile(TileIndex *tile_ptr, RoadBits cur_rb, DiagDirection t
|
||||
|
||||
case TL_3X3_GRID: // Use 2x2 grid afterwards!
|
||||
GrowTownWithExtraHouse(t1, TileAddByDiagDir(house_tile, target_dir));
|
||||
FALLTHROUGH;
|
||||
[[fallthrough]];
|
||||
|
||||
case TL_2X2_GRID:
|
||||
rcmd = GetTownRoadGridElement(t1, tile, target_dir);
|
||||
@@ -1608,7 +1608,7 @@ static void GrowTownInTile(TileIndex *tile_ptr, RoadBits cur_rb, DiagDirection t
|
||||
|
||||
case TL_BETTER_ROADS: // Use original afterwards!
|
||||
GrowTownWithExtraHouse(t1, TileAddByDiagDir(house_tile, target_dir));
|
||||
FALLTHROUGH;
|
||||
[[fallthrough]];
|
||||
|
||||
case TL_ORIGINAL:
|
||||
/* Allow a house at the edge. 60% chance or
|
||||
@@ -3764,7 +3764,7 @@ Town *ClosestTownFromTile(TileIndex tile, uint threshold)
|
||||
|
||||
return town;
|
||||
}
|
||||
FALLTHROUGH;
|
||||
[[fallthrough]];
|
||||
|
||||
case MP_HOUSE:
|
||||
return Town::GetByTile(tile);
|
||||
|
Reference in New Issue
Block a user