From b23d4b6e56bbf4a903abbed0b8e4ff2a0f5e8f23 Mon Sep 17 00:00:00 2001 From: Abigail Date: Thu, 29 Jan 2026 23:12:19 +1100 Subject: [PATCH] Fix #15137: Roads built on steep slopes at the minimum snow level height have inconsistent snowiness --- src/road_cmd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp index 2c9cad7a2a..36fd984ca7 100644 --- a/src/road_cmd.cpp +++ b/src/road_cmd.cpp @@ -2006,8 +2006,8 @@ static void TileLoop_Road(TileIndex tile) { switch (_settings_game.game_creation.landscape) { case LandscapeType::Arctic: { - /* Roads on flat foundations use the snow level of the height they are elevated to. All others use the snow level of their minimum height. */ - int tile_z = (std::get(GetFoundationSlope(tile)) == SLOPE_FLAT) ? GetTileMaxZ(tile) : GetTileZ(tile); + /* Roads on flat or elevated foundations use the snow level of the height they are elevated to. All others use the snow level of their minimum height. */ + int tile_z = (std::get(GetFoundationSlope(tile)) == SLOPE_FLAT || std::get(GetFoundationSlope(tile)) & SLOPE_ELEVATED) ? GetTileMaxZ(tile) : GetTileZ(tile); if (IsOnSnowOrDesert(tile) != (tile_z > GetSnowLine())) { ToggleSnowOrDesert(tile); MarkTileDirtyByTile(tile);