Mercurial > hg > openttd
changeset 15501:2ab30a4b535a draft
(svn r20153) -Fix (r20125): Make the snowchecks for clear land and trees consistent with the other tiletypes.
author | frosch <frosch@openttd.org> |
---|---|
date | Wed, 14 Jul 2010 20:26:01 +0000 |
parents | 3ce7c35a1f05 |
children | 37dcbee945a1 |
files | src/newgrf_commons.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/newgrf_commons.cpp +++ b/src/newgrf_commons.cpp @@ -291,7 +291,7 @@ 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 @@ 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; }