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

Function SetIndustryAnimationLoop

src/industry_map.h:211–215  ·  view source on GitHub ↗

* Set the animation loop number * @param tile the tile to set the animation loop number of * @param count the new animation frame number * @pre IsTileType(tile, MP_INDUSTRY) */

Source from the content-addressed store, hash-verified

209 * @pre IsTileType(tile, MP_INDUSTRY)
210 */
211inline void SetIndustryAnimationLoop(Tile tile, uint8_t count)
212{
213 assert(IsTileType(tile, MP_INDUSTRY));
214 tile.m4() = count;
215}
216
217/**
218 * Get the random bits for this tile.

Callers 3

AnimateToyFactoryFunction · 0.85
MakeIndustryTileBiggerFunction · 0.85
TileLoop_IndustryFunction · 0.85

Calls 1

IsTileTypeFunction · 0.85

Tested by

no test coverage detected