changeset 407 | ac158a606861 |
parent 337 | cbe0c766c947 |
child 473 | 77f0ef57e7cf |
--- a/tree_cmd.c Sun Nov 14 16:45:38 2004 +0000 +++ b/tree_cmd.c Sun Nov 14 17:16:26 2004 +0000 @@ -36,7 +36,7 @@ if (tree >= 0) { m5 = (byte)(r >> 16); - if(m5==7) m5--; + if ((m5 & 0x7) == 7) m5--; // there is no growth state 7 _map5[tile] = m5 & 0x07; // growth state; _map5[tile] |= m5 & 0xC0; // amount of trees