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

Function IndustryDrawToffeeQuarry

src/industry_cmd.cpp:266–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264}
265
266static void IndustryDrawToffeeQuarry(const TileInfo *ti)
267{
268 uint8_t x = 0;
269
270 if (IsIndustryCompleted(ti->tile)) {
271 x = _industry_anim_offs_toffee[GetAnimationFrame(ti->tile)];
272 if (x == 0xFF) {
273 x = 0;
274 }
275 }
276
277 AddChildSpriteScreen(SPR_IT_TOFFEE_QUARRY_SHOVEL, PAL_NONE, 22 - x, 24 + x);
278 AddChildSpriteScreen(SPR_IT_TOFFEE_QUARRY_TOFFEE, PAL_NONE, 6, 14);
279}
280
281static void IndustryDrawBubbleGenerator( const TileInfo *ti)
282{

Callers

nothing calls this directly

Calls 3

IsIndustryCompletedFunction · 0.85
GetAnimationFrameFunction · 0.85
AddChildSpriteScreenFunction · 0.85

Tested by

no test coverage detected