forked from mirror/OpenTTD
Codechange: Use town zone constants instead of magic numbers
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user