From 9b657860554657ca8cd2977206baf0784e4e3ae9 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Thu, 20 Feb 2025 18:57:17 +0000 Subject: [PATCH] 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. --- src/clear_cmd.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/clear_cmd.cpp b/src/clear_cmd.cpp index ccbb85c0a5..3a72539f41 100644 --- a/src/clear_cmd.cpp +++ b/src/clear_cmd.cpp @@ -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;