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

Function GetAnimatedTileState

src/animated_tile_map.h:30–33  ·  view source on GitHub ↗

* Get the animated state of a tile. * @param t The tile. * @returns true iff the tile is animated. */

Source from the content-addressed store, hash-verified

28 * @returns true iff the tile is animated.
29 */
30inline AnimatedTileState GetAnimatedTileState(Tile t)
31{
32 return static_cast<AnimatedTileState>(GB(t.m6(), 0, 2));
33}
34
35/**
36 * Set the animated state of a tile.

Callers 3

DeleteAnimatedTileFunction · 0.85
AddAnimatedTileFunction · 0.85
AnimateAnimatedTilesFunction · 0.85

Calls 1

GBFunction · 0.85

Tested by

no test coverage detected