(svn r27009) -Add: extra level of general map heightness (ChillCore)
This commit is contained in:
@@ -1273,7 +1273,8 @@ void GenerateLandscape(byte mode)
|
||||
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);
|
||||
/* Make sure we do not overflow. */
|
||||
GenerateTerrain(Clamp(_settings_game.difficulty.terrain_type, 0, 3), 0);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user