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

Function AnimateBubbleCatcher

src/industry_cmd.cpp:588–599  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

586}
587
588static void AnimateBubbleCatcher(TileIndex tile)
589{
590 uint8_t m = GetAnimationFrame(tile);
591
592 if (++m >= 40) {
593 m = 0;
594 DeleteAnimatedTile(tile);
595 }
596 SetAnimationFrame(tile, m);
597
598 MarkTileDirtyByTile(tile);
599}
600
601static void AnimatePowerPlantSparks(TileIndex tile)
602{

Callers 1

AnimateTile_IndustryFunction · 0.85

Calls 4

GetAnimationFrameFunction · 0.85
DeleteAnimatedTileFunction · 0.85
SetAnimationFrameFunction · 0.85
MarkTileDirtyByTileFunction · 0.70

Tested by

no test coverage detected