* Make a clear tile. * @param t the tile to make a clear tile * @param g the type of ground * @param density the density of the grass/snow/desert etc */
| 245 | * @param density the density of the grass/snow/desert etc |
| 246 | */ |
| 247 | inline void MakeClear(Tile t, ClearGround g, uint density) |
| 248 | { |
| 249 | SetTileType(t, MP_CLEAR); |
| 250 | t.m1() = 0; |
| 251 | SetTileOwner(t, OWNER_NONE); |
| 252 | t.m2() = 0; |
| 253 | t.m3() = 0; |
| 254 | t.m4() = 0 << 5 | 0 << 2; |
| 255 | SetClearGroundDensity(t, g, density); // Sets m5 |
| 256 | t.m6() = 0; |
| 257 | t.m7() = 0; |
| 258 | t.m8() = 0; |
| 259 | } |
| 260 | |
| 261 | |
| 262 | /** |
no test coverage detected