diff options
author | terkhen <terkhen@openttd.org> | 2010-11-04 18:34:37 +0000 |
---|---|---|
committer | terkhen <terkhen@openttd.org> | 2010-11-04 18:34:37 +0000 |
commit | 725cf7d8bb1604ce4c14d3f44ba3f64872b70768 (patch) | |
tree | 46e566014a436c8e44cbb34ab369be099c20d3da /src/landscape.cpp | |
parent | ab9279b5a0e924fc3979c42fd11a04ea48f73124 (diff) | |
download | openttd-725cf7d8bb1604ce4c14d3f44ba3f64872b70768.tar.xz |
(svn r21080) -Fix: Do not allow to use a custom water level with the original map generator.
Diffstat (limited to 'src/landscape.cpp')
-rw-r--r-- | src/landscape.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/landscape.cpp b/src/landscape.cpp index db54810b2..71a788c25 100644 --- a/src/landscape.cpp +++ b/src/landscape.cpp @@ -963,6 +963,7 @@ void GenerateLandscape(byte mode) default: { uint32 r = Random(); + assert(_settings_game.difficulty.quantity_sea_lakes != CUSTOM_SEA_LEVEL_NUMBER_DIFFICULTY); uint i = ScaleByMapSize(GB(r, 0, 7) + (3 - _settings_game.difficulty.quantity_sea_lakes) * 256 + 100); for (; i != 0; --i) { GenerateTerrain(_settings_game.difficulty.terrain_type, 0); |