(svn r21080) -Fix: Do not allow to use a custom water level with the original map generator.

This commit is contained in:
terkhen
2010-11-04 18:34:37 +00:00
parent d5c8ea393d
commit 4059acb2cc
3 changed files with 32 additions and 14 deletions

View File

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