* Returns the 'density' of a tile with trees. * * This function returns the density of a tile which got trees. Note * that this value doesn't count the number of trees on a tile, use * #GetTreeCount instead. This function instead returns some kind of * groundtype of the tile. As the map-array is finite in size and * the information about the trees must be saved somehow other * information a
| 125 | * @see GetTreeCount |
| 126 | */ |
| 127 | inline uint GetTreeDensity(Tile t) |
| 128 | { |
| 129 | assert(IsTileType(t, MP_TREES)); |
| 130 | return GB(t.m2(), 4, 2); |
| 131 | } |
| 132 | |
| 133 | /** |
| 134 | * Set the density and ground type of a tile with trees. |
no test coverage detected