(svn r1345) Only copy the lowest two bits (amount of snow/desert) from map5 to map2 when placing trees, before this happened implicitly because map2 was just 8 bits wide
authortron
Mon, 03 Jan 2005 19:06:16 +0000
changeset 864 aa99032eccd8
parent 863 8d09f9331a80
child 865 789ce24b174f
(svn r1345) Only copy the lowest two bits (amount of snow/desert) from map5 to map2 when placing trees, before this happened implicitly because map2 was just 8 bits wide
tree_cmd.c
--- a/tree_cmd.c	Mon Jan 03 18:59:58 2005 +0000
+++ b/tree_cmd.c	Mon Jan 03 19:06:16 2005 +0000
@@ -521,7 +521,7 @@
 				if ( (_map5[tile] & 0x1C) == 4) {
 					_map2[tile] = 0x10;
 				} else if ((_map5[tile] & 0x1C) == 16) {
-					_map2[tile] = (_map5[tile] << 6) | 0x20;
+					_map2[tile] = ((_map5[tile] & 3) << 6) | 0x20;
 				} else {
 					if ((_map5[tile] & 0x1F) != 3)
 						return;