(svn r1874) Fix bug introduced in r1839 which placed snow covered trees below the snow line ([1121680])
authortron
Mon, 14 Feb 2005 18:55:10 +0000
changeset 1370 5818d387fa69
parent 1369 fb22b2cc27e3
child 1371 76c98f1ff2bf
(svn r1874) Fix bug introduced in r1839 which placed snow covered trees below the snow line ([1121680])
tree_cmd.c
--- a/tree_cmd.c	Sun Feb 13 23:29:58 2005 +0000
+++ b/tree_cmd.c	Mon Feb 14 18:55:10 2005 +0000
@@ -50,8 +50,7 @@
 		_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
 		}