1
0
Fork 0

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.
pull/13629/head
Peter Nelson 2025-02-20 18:57:17 +00:00 committed by GitHub
parent d0ba6ed1f4
commit 9b65786055
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

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;