MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / ClearSnow

Function ClearSnow

src/clear_map.h:304–309  ·  view source on GitHub ↗

* Clear the snow from a tile and return it to its previous type. * @param t the tile to clear of snow * @pre IsSnowTile(t) */

Source from the content-addressed store, hash-verified

302 * @pre IsSnowTile(t)
303 */
304inline void ClearSnow(Tile t)
305{
306 assert(IsSnowTile(t));
307 ClrBit(t.m3(), 4);
308 SetClearDensity(t, 3);
309}
310
311#endif /* CLEAR_MAP_H */

Callers 1

TileLoopClearAlpsFunction · 0.85

Calls 3

IsSnowTileFunction · 0.85
ClrBitFunction · 0.85
SetClearDensityFunction · 0.85

Tested by

no test coverage detected