Codechange: Use town zone constants instead of magic numbers

This commit is contained in:
SamuXarick
2023-12-11 17:04:41 +00:00
committed by rubidium42
parent 9b7a5bc876
commit fddcaef74a
4 changed files with 23 additions and 19 deletions

View File

@@ -1937,6 +1937,8 @@ static const Roadside _town_road_types[][2] = {
{ ROADSIDE_STREET_LIGHTS, ROADSIDE_PAVED }
};
static_assert(lengthof(_town_road_types) == HZB_END);
static const Roadside _town_road_types_2[][2] = {
{ ROADSIDE_GRASS, ROADSIDE_GRASS },
{ ROADSIDE_PAVED, ROADSIDE_PAVED },
@@ -1945,6 +1947,8 @@ static const Roadside _town_road_types_2[][2] = {
{ ROADSIDE_STREET_LIGHTS, ROADSIDE_PAVED }
};
static_assert(lengthof(_town_road_types_2) == HZB_END);
static void TileLoop_Road(TileIndex tile)
{