# HG changeset patch # User darkvater # Date 1104780847 0 # Node ID d242235e6485d576a957cd41f27d574e78cc0aaf # Parent 882569906899e1159cf8a52b7c0d1b34eda0bc47 (svn r1347) -Fix: Some were fixed for the trees -> 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; diff -r 882569906899 -r d242235e6485 tree_cmd.c --- a/tree_cmd.c Mon Jan 03 19:09:45 2005 +0000 +++ b/tree_cmd.c Mon Jan 03 19:34:07 2005 +0000 @@ -202,7 +202,7 @@ if ( (ti.map5 & 0x1C) == 4 ) { m2 = 16; } else if ( (ti.map5 & 0x1C) == 16 ) { - m2 = (ti.map5 << 6) | 0x20; + m2 = ((ti.map5 & 3) << 6) | 0x20; } treetype = p1; @@ -609,7 +609,7 @@ } else if (m == 4) { m2 = 0x10; } else { - m2 = (_map5[tile] << 6) | 0x20; + m2 = ((_map5[tile] & 3) << 6) | 0x20; } ModifyTile(tile,