summaryrefslogtreecommitdiff
path: root/src/tgp.cpp
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2010-09-20 19:15:31 +0000
committerterkhen <terkhen@openttd.org>2010-09-20 19:15:31 +0000
commitbce6328ed0910e210d6fc3e7ed748d976c0bfcd1 (patch)
tree3b4ded6224bb22b3c00a8f91983bfb5ebf6b1d65 /src/tgp.cpp
parente90930e5722a43741deef77de9c562283549faf1 (diff)
downloadopenttd-bce6328ed0910e210d6fc3e7ed748d976c0bfcd1.tar.xz
(svn r20833) -Fix (r20832): Remove a warning.
Diffstat (limited to 'src/tgp.cpp')
-rw-r--r--src/tgp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tgp.cpp b/src/tgp.cpp
index 5e7bf6092..f936175fb 100644
--- a/src/tgp.cpp
+++ b/src/tgp.cpp
@@ -848,7 +848,7 @@ static void HeightMapSmoothSlopes(height_t dh_max)
static void HeightMapNormalize()
{
int sea_level_setting = _settings_game.difficulty.quantity_sea_lakes;
- const amplitude_t water_percent = sea_level_setting != CUSTOM_SEA_LEVEL_NUMBER_DIFFICULTY ? _water_percent[sea_level_setting] : _settings_game.game_creation.custom_sea_level * 1024 / 100;
+ const amplitude_t water_percent = sea_level_setting != (int)CUSTOM_SEA_LEVEL_NUMBER_DIFFICULTY ? _water_percent[sea_level_setting] : _settings_game.game_creation.custom_sea_level * 1024 / 100;
const height_t h_max_new = I2H(_max_height[_settings_game.difficulty.terrain_type]);
const height_t roughness = 7 + 3 * _settings_game.game_creation.tgen_smoothness;