Changeset - r10992:0cbebf0c0dc1
[Not reviewed]
master
0 1 0
smatz - 15 years ago 2009-02-04 01:07:53
smatz@openttd.org
(svn r15332) -Fix (r15190): terrain generated from heightmaps always was at sea level at both southern borders
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/heightmap.cpp
Show inline comments
 
@@ -331,8 +331,8 @@ static void GrayscaleToMapHeights(uint i
 

	
 
			/* Check if current tile is within the 1-pixel map edge or padding regions */
 
			if ((!_settings_game.construction.freeform_edges && DistanceFromEdge(tile) <= 1) ||
 
					(row < row_pad) || (row >= (height - row_pad - 1)) ||
 
					(col < col_pad) || (col >= (width  - col_pad - 1))) {
 
					(row < row_pad) || (row >= (height - row_pad - (_settings_game.construction.freeform_edges ? 0 : 1))) ||
 
					(col < col_pad) || (col >= (width  - col_pad - (_settings_game.construction.freeform_edges ? 0 : 1)))) {
 
				SetTileHeight(tile, 0);
 
			} else {
 
				/* Use nearest neighbor resizing to scale map data.
0 comments (0 inline, 0 general)