mirror of
https://github.com/OpenTTD/OpenTTD
synced 2025-12-10 06:52:05 +01:00
Codechange: Use EnumBitSet for LandscapeTypes and remove LandscapeID. (#13436)
This commit is contained in:
@@ -2596,7 +2596,7 @@ static void TileLoop_Track(TileIndex tile)
|
||||
}
|
||||
|
||||
switch (_settings_game.game_creation.landscape) {
|
||||
case LT_ARCTIC: {
|
||||
case LandscapeType::Arctic: {
|
||||
auto [slope, z] = GetTileSlopeZ(tile);
|
||||
bool half = false;
|
||||
|
||||
@@ -2652,12 +2652,15 @@ static void TileLoop_Track(TileIndex tile)
|
||||
break;
|
||||
}
|
||||
|
||||
case LT_TROPIC:
|
||||
case LandscapeType::Tropic:
|
||||
if (GetTropicZone(tile) == TROPICZONE_DESERT) {
|
||||
new_ground = RAIL_GROUND_ICE_DESERT;
|
||||
goto set_ground;
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
new_ground = RAIL_GROUND_GRASS;
|
||||
|
||||
Reference in New Issue
Block a user