From ff6924f1222ade72feab10a9e9137e50fad9ea89 Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Sat, 10 Apr 2021 11:14:55 +0200 Subject: Fix 70bc55cfd6e: snow line height was set while calculating desert line (#8989) Seems I liked copy/pasting just a tiny bit too much. --- src/landscape.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) -- cgit v1.2.3-70-g09d2