diff options
author | alberth <alberth@openttd.org> | 2015-05-16 12:01:19 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2015-05-16 12:01:19 +0000 |
commit | b8414c28844e3df865b77b494aa200b5957cb826 (patch) | |
tree | 5233b0a1bccd484c4bfe648546b70256f6cdd5cc /src/settings.cpp | |
parent | c13b8aa2cb3b9b021c0d5bf649e22f59b84193ef (diff) | |
download | openttd-b8414c28844e3df865b77b494aa200b5957cb826.tar.xz |
(svn r27285) -Codechange: Use LG_ORIGINAL instead of a magic 0 to indicate the original landscape generator.
Diffstat (limited to 'src/settings.cpp')
-rw-r--r-- | src/settings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings.cpp b/src/settings.cpp index ecad0239c..e6754bb90 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -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; } |