Fix 70bc55cfd6e: snow line height was set while calculating desert line (#8989)

Seems I liked copy/pasting just a tiny bit too much.
This commit is contained in:
Patric Stout 2021-04-10 11:14:55 +02:00 committed by GitHub
parent e98aed8b48
commit ff6924f122
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)