(svn r27285) -Codechange: Use LG_ORIGINAL instead of a magic 0 to indicate the original landscape generator.

This commit is contained in:
alberth
2015-05-16 12:01:19 +00:00
parent c13b8aa2cb
commit b8414c2884
2 changed files with 8 additions and 8 deletions

View File

@@ -1147,7 +1147,7 @@ static bool InvalidateCompanyWindow(int32 p1)
static void ValidateSettings()
{
/* Do not allow a custom sea level with the original land generator. */
if (_settings_newgame.game_creation.land_generator == 0 &&
if (_settings_newgame.game_creation.land_generator == LG_ORIGINAL &&
_settings_newgame.difficulty.quantity_sea_lakes == CUSTOM_SEA_LEVEL_NUMBER_DIFFICULTY) {
_settings_newgame.difficulty.quantity_sea_lakes = CUSTOM_SEA_LEVEL_MIN_PERCENTAGE;
}