# HG changeset patch # User Patric Stout # Date 2021-04-10 09:14:55 # Node ID 46a9ec64e3c1c26bbacb7a13c79f1bdc2f6d09ae # Parent 4fd940486f39c6d3f821ce57f86f7204b572b820 Fix 70bc55cfd6e: snow line height was set while calculating desert line (#8989) Seems I liked copy/pasting just a tiny bit too much. diff --git a/src/landscape.cpp b/src/landscape.cpp --- 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)