summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-04-10 11:14:55 +0200
committerGitHub <noreply@github.com>2021-04-10 10:14:55 +0100
commitff6924f1222ade72feab10a9e9137e50fad9ea89 (patch)
tree0c614dececf84cdc5ee73766671a2c67f51f814a
parente98aed8b485caa63145ae1d8f48b177da3b54006 (diff)
downloadopenttd-ff6924f1222ade72feab10a9e9137e50fad9ea89.tar.xz
Fix 70bc55cfd6e: snow line height was set while calculating desert line (#8989)
Seems I liked copy/pasting just a tiny bit too much.
-rw-r--r--src/landscape.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/landscape.cpp b/src/landscape.cpp
index 9c524bf6c..6ea3af75b 100644
--- a/src/landscape.cpp
+++ b/src/landscape.cpp
@@ -1400,7 +1400,7 @@ static void CalculateSnowLine()
static uint8 CalculateDesertLine()
{
/* CalculateCoverageLine() runs from top to bottom, so we need to invert the coverage. */
- return _settings_game.game_creation.snow_line_height = CalculateCoverageLine(100 - _settings_game.game_creation.desert_coverage, 4);
+ return CalculateCoverageLine(100 - _settings_game.game_creation.desert_coverage, 4);
}
void GenerateLandscape(byte mode)