From 1e2f9ba5a59da89c66ea07cfe674dcbccd0276c9 Mon Sep 17 00:00:00 2001 From: tron Date: Mon, 14 Feb 2005 18:55:10 +0000 Subject: (svn r1874) Fix bug introduced in r1839 which placed snow covered trees below the snow line ([1121680]) --- tree_cmd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tree_cmd.c') 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 } -- cgit v1.2.3-54-g00ecf