src/newgrf_house.cpp
changeset 8571 53c94d717e99
parent 8570 f50de4804ff1
child 8707 e57a09994e12
equal deleted inserted replaced
8570:f50de4804ff1 8571:53c94d717e99
   287 void DrawTileLayout(const TileInfo *ti, const SpriteGroup *group, byte stage, HouseID house_id)
   287 void DrawTileLayout(const TileInfo *ti, const SpriteGroup *group, byte stage, HouseID house_id)
   288 {
   288 {
   289 	const DrawTileSprites *dts = group->g.layout.dts;
   289 	const DrawTileSprites *dts = group->g.layout.dts;
   290 	const DrawTileSeqStruct *dtss;
   290 	const DrawTileSeqStruct *dtss;
   291 
   291 
   292 	SpriteID image = dts->ground_sprite;
   292 	SpriteID image = dts->ground.sprite;
   293 	SpriteID pal   = dts->ground_pal;
   293 	SpriteID pal   = dts->ground.pal;
   294 
   294 
   295 	if (IS_CUSTOM_SPRITE(image)) image += stage;
   295 	if (IS_CUSTOM_SPRITE(image)) image += stage;
   296 
   296 
   297 	if (GB(image, 0, SPRITE_WIDTH) != 0) DrawGroundSprite(image, pal);
   297 	if (GB(image, 0, SPRITE_WIDTH) != 0) DrawGroundSprite(image, pal);
   298 
   298