summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-02-14 18:55:10 +0000
committertron <tron@openttd.org>2005-02-14 18:55:10 +0000
commite2359c11ae9921e9dbc45db1705d09517fbea1a3 (patch)
treee308eddec4abea5b2c2159040c38cbae015fc785
parent8fea0f0a8f511be1feec53c626f8ae1ab5bc20d5 (diff)
downloadopenttd-e2359c11ae9921e9dbc45db1705d09517fbea1a3.tar.xz
(svn r1874) Fix bug introduced in r1839 which placed snow covered trees below the snow line ([1121680])
-rw-r--r--tree_cmd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tree_cmd.c b/tree_cmd.c
index 9e9bc6b1f..a29663d6f 100644
--- a/tree_cmd.c
+++ b/tree_cmd.c
@@ -50,8 +50,7 @@ static void PlaceTree(uint tile, uint32 r, byte m5_or)
_map3_hi[tile] = 0; // no hedge
// above snowline?
- if( (_opt.landscape == LT_HILLY) && (GetTileZ(tile) - _opt.snow_line > 0) )
- {
+ if (_opt.landscape == LT_HILLY && GetTileZ(tile) > _opt.snow_line) {
_map2[tile] = 0xE0; // set land type to snow
_map2[tile] |= (byte)(r >> 24)&0x07; // randomize counter
}