* Add a amount to the tree-count value of a tile with trees. * * This function add a value to the tree-count value of a tile. This * value may be negative to reduce the tree-counter. If the resulting * value reach 0 it doesn't get converted to a "normal" tile. * * @param t The tile to change the tree amount * @param c The value to add (or reduce) on the tree-count value * @pre Tile must be
| 178 | * @pre Tile must be of type MP_TREES |
| 179 | */ |
| 180 | inline void AddTreeCount(Tile t, int c) |
| 181 | { |
| 182 | assert(IsTileType(t, MP_TREES)); // XXX incomplete |
| 183 | t.m5() += c << 6; |
| 184 | } |
| 185 | |
| 186 | /** |
| 187 | * Returns the tree growth stage. |
no test coverage detected