Changeset - r22156:810d8ff71c2f
[Not reviewed]
master
0 1 0
frosch - 9 years ago 2015-07-11 10:43:34
frosch@openttd.org
(svn r27329) -Fix: Add more height_t type-correctness to TGP code.
1 file changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/tgp.cpp
Show inline comments
 
@@ -573,7 +573,7 @@ static void HeightMapSineTransform(heigh
 
 */
 
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));
 
}
 

	
 
/**
0 comments (0 inline, 0 general)