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

Function GetIndustryAnimationLoop

src/industry_map.h:199–203  ·  view source on GitHub ↗

* Get the animation loop number * @param tile the tile to get the animation loop number of * @pre IsTileType(tile, MP_INDUSTRY) */

Source from the content-addressed store, hash-verified

197 * @pre IsTileType(tile, MP_INDUSTRY)
198 */
199inline uint8_t GetIndustryAnimationLoop(Tile tile)
200{
201 assert(IsTileType(tile, MP_INDUSTRY));
202 return tile.m4();
203}
204
205/**
206 * Set the animation loop number

Callers 1

AnimateToyFactoryFunction · 0.85

Calls 1

IsTileTypeFunction · 0.85

Tested by

no test coverage detected