1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-30 09:59:10 +00:00

Fix: Incorrect snow density when making rocks snowy. (#13626)

Rocks do not use density, but snowy rocks use snow density. Therefore it should start at zero like non-rocky land.
This commit is contained in:
2025-02-20 18:57:17 +00:00
committed by GitHub
parent d0ba6ed1f4
commit 9b65786055

View File

@@ -165,7 +165,8 @@ static void TileLoopClearAlps(TileIndex tile)
/* Below the snow line, do nothing if no snow. */
/* At or above the snow line, make snow tile if needed. */
if (k >= 0) {
MakeSnow(tile, IsClearGround(tile, CLEAR_ROCKS) ? GetClearDensity(tile) : 0);
/* Snow density is started at 0 so that it can gradually reach the required density. */
MakeSnow(tile, 0);
MarkTileDirtyByTile(tile);
}
return;