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

Function IndustryDrawSugarMine

src/industry_cmd.cpp:248–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246
247
248static void IndustryDrawSugarMine(const TileInfo *ti)
249{
250 if (!IsIndustryCompleted(ti->tile)) return;
251
252 const DrawIndustryAnimationStruct *d = &_draw_industry_spec1[GetAnimationFrame(ti->tile)];
253
254 AddChildSpriteScreen(SPR_IT_SUGAR_MINE_SIEVE + d->image_1, PAL_NONE, d->x, 0);
255
256 if (d->image_2 != 0) {
257 AddChildSpriteScreen(SPR_IT_SUGAR_MINE_CLOUDS + d->image_2 - 1, PAL_NONE, 8, 41);
258 }
259
260 if (d->image_3 != 0) {
261 AddChildSpriteScreen(SPR_IT_SUGAR_MINE_PILE + d->image_3 - 1, PAL_NONE,
262 _drawtile_proc1[d->image_3 - 1].x, _drawtile_proc1[d->image_3 - 1].y);
263 }
264}
265
266static void IndustryDrawToffeeQuarry(const TileInfo *ti)
267{

Callers

nothing calls this directly

Calls 3

IsIndustryCompletedFunction · 0.85
GetAnimationFrameFunction · 0.85
AddChildSpriteScreenFunction · 0.85

Tested by

no test coverage detected