(svn r2750) -Fix: Tree tiles above the snow line got redrawn disproportionately often
authortron
Fri, 29 Jul 2005 18:22:04 +0000
changeset 2230 e461b07aead7
parent 2229 04b5d913acec
child 2231 0e3123832176
(svn r2750) -Fix: Tree tiles above the snow line got redrawn disproportionately often
tree_cmd.c
--- a/tree_cmd.c	Fri Jul 29 17:52:29 2005 +0000
+++ b/tree_cmd.c	Fri Jul 29 18:22:04 2005 +0000
@@ -424,7 +424,7 @@
 	/* 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 @@
 		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);