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

Function IndustryDrawToyFactory

src/industry_cmd.cpp:289–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287}
288
289static void IndustryDrawToyFactory(const TileInfo *ti)
290{
291 const DrawIndustryAnimationStruct *d = &_industry_anim_offs_toys[GetAnimationFrame(ti->tile)];
292
293 if (d->image_1 != 0xFF) {
294 AddChildSpriteScreen(SPR_IT_TOY_FACTORY_CLAY, PAL_NONE, d->x, 96 + d->image_1);
295 }
296
297 if (d->image_2 != 0xFF) {
298 AddChildSpriteScreen(SPR_IT_TOY_FACTORY_ROBOT, PAL_NONE, 16 - d->image_2 * 2, 100 + d->image_2);
299 }
300
301 AddChildSpriteScreen(SPR_IT_TOY_FACTORY_STAMP, PAL_NONE, 7, d->image_3);
302 AddChildSpriteScreen(SPR_IT_TOY_FACTORY_STAMP_HOLDER, PAL_NONE, 0, 42);
303}
304
305static void IndustryDrawCoalPlantSparks(const TileInfo *ti)
306{

Callers

nothing calls this directly

Calls 2

GetAnimationFrameFunction · 0.85
AddChildSpriteScreenFunction · 0.85

Tested by

no test coverage detected