diff options
author | yexo <yexo@openttd.org> | 2010-01-04 18:33:43 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-01-04 18:33:43 +0000 |
commit | b378e82676b299dc8d579cd2ac020758fbf52f84 (patch) | |
tree | 044688328cdbf84c799fd452f4c38c3132943db1 /src/clear_cmd.cpp | |
parent | 3e131e2fece740591d9187e19789a34b36c763fa (diff) | |
download | openttd-b378e82676b299dc8d579cd2ac020758fbf52f84.tar.xz |
(svn r18719) -Feature: don't delete the rough/rocky status of a tile when it's covered by snow, this allows rocky tiles under snow if you have a variable snowline
Diffstat (limited to 'src/clear_cmd.cpp')
-rw-r--r-- | src/clear_cmd.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/clear_cmd.cpp b/src/clear_cmd.cpp index e3d1e3137..2e157ffcf 100644 --- a/src/clear_cmd.cpp +++ b/src/clear_cmd.cpp @@ -158,11 +158,11 @@ static void TileLoopClearAlps(TileIndex tile) if (k < 0) { /* Below the snow line, do nothing if no snow. */ - if (!IsClearGround(tile, CLEAR_SNOW)) return; + if (!IsSnowTile(tile)) return; } else { /* At or above the snow line, make snow tile if needed. */ - if (!IsClearGround(tile, CLEAR_SNOW)) { - SetClearGroundDensity(tile, CLEAR_SNOW, 0); + if (!IsSnowTile(tile)) { + MakeSnow(tile); MarkTileDirtyByTile(tile); return; } @@ -177,7 +177,7 @@ static void TileLoopClearAlps(TileIndex tile) AddClearDensity(tile, -1); } else { /* Density at the required level. */ - if (k < 0) SetClearGroundDensity(tile, CLEAR_GRASS, 3); + if (k < 0) ClearSnow(tile); } MarkTileDirtyByTile(tile); } |