diff options
author | frosch <frosch@openttd.org> | 2015-07-11 10:43:34 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2015-07-11 10:43:34 +0000 |
commit | b303ba750577701ab30e39cc58fda2b3c972912a (patch) | |
tree | 1fbf0a48259b6122bfde671645a93fea8992356b /src | |
parent | 8437726cca9662f4494a7101ce920425e46133a2 (diff) | |
download | openttd-b303ba750577701ab30e39cc58fda2b3c972912a.tar.xz |
(svn r27329) -Fix: Add more height_t type-correctness to TGP code.
Diffstat (limited to 'src')
-rw-r--r-- | src/tgp.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tgp.cpp b/src/tgp.cpp index cf597ea87..fb835c43c 100644 --- a/src/tgp.cpp +++ b/src/tgp.cpp @@ -573,7 +573,7 @@ static void HeightMapSineTransform(height_t h_min, height_t h_max) */ static void HeightMapCurves(uint level) { - int mh = TGPGetMaxHeight(); + height_t mh = TGPGetMaxHeight(); /** Basically scale height X to height Y. Everything in between is interpolated. */ struct control_point_t { @@ -907,13 +907,13 @@ static void HeightMapNormalize() HeightMapSmoothCoasts(water_borders); HeightMapSmoothSlopes(roughness); - HeightMapSineTransform(12, h_max_new); + HeightMapSineTransform(I2H(1), h_max_new); if (_settings_game.game_creation.variety > 0) { HeightMapCurves(_settings_game.game_creation.variety); } - HeightMapSmoothSlopes(16); + HeightMapSmoothSlopes(I2H(1)); } /** |