Changeset - r15491:843ee05eb57e
[Not reviewed]
master
0 1 0
frosch - 14 years ago 2010-07-14 20:26:01
frosch@openttd.org
(svn r20153) -Fix (r20125): Make the snowchecks for clear land and trees consistent with the other tiletypes.
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/newgrf_commons.cpp
Show inline comments
 
@@ -291,7 +291,7 @@ uint32 GetTerrainType(TileIndex tile, bo
 
			bool has_snow;
 
			switch (GetTileType(tile)) {
 
				case MP_CLEAR:
 
					has_snow = IsSnowTile(tile);
 
					has_snow = IsSnowTile(tile) && GetClearDensity(tile) >= 2;
 
					break;
 

	
 
				case MP_RAILWAY: {
 
@@ -306,7 +306,7 @@ uint32 GetTerrainType(TileIndex tile, bo
 

	
 
				case MP_TREES: {
 
					TreeGround ground = GetTreeGround(tile);
 
					has_snow = (ground == TREE_GROUND_SNOW_DESERT || ground == TREE_GROUND_ROUGH_SNOW);
 
					has_snow = (ground == TREE_GROUND_SNOW_DESERT || ground == TREE_GROUND_ROUGH_SNOW) && GetTreeDensity(tile) >= 2;
 
					break;
 
				}
 

	
0 comments (0 inline, 0 general)