summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-07-29 18:22:04 +0000
committertron <tron@openttd.org>2005-07-29 18:22:04 +0000
commitf57d263d831cfe38edf2d0ad916d55045a95ef0b (patch)
tree03e37dce3df63e2a3630730f5b09a09f410459a4
parent6abf8f89a22d71aba02c4885084a9a675bb7b89c (diff)
downloadopenttd-f57d263d831cfe38edf2d0ad916d55045a95ef0b.tar.xz
(svn r2750) -Fix: Tree tiles above the snow line got redrawn disproportionately often
-rw-r--r--tree_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tree_cmd.c b/tree_cmd.c
index 3690b80ab..d9cf5e2ad 100644
--- a/tree_cmd.c
+++ b/tree_cmd.c
@@ -424,7 +424,7 @@ static void TileLoopTreesAlps(TileIndex tile)
/* distance from snow line, in steps of 8 */
k = GetTileZ(tile) - _opt.snow_line;
- tmp = _m[tile].m5 & 0xF0;
+ tmp = _m[tile].m2 & 0xF0;
if (k < -8) {
/* snow_m2_down */
@@ -444,7 +444,7 @@ static void TileLoopTreesAlps(TileIndex tile)
if (tmp == m2) return;
} else {
/* snow_p2_up */
- if (tmp == 0xC0) {
+ if (tmp == 0xE0) {
uint32 r = Random();
if (CHANCE16I(1,200,r)) {
SndPlayTileFx((r & 0x80000000) ? SND_39_HEAVY_WIND : SND_34_WIND, tile);