mirror of https://github.com/OpenTTD/OpenTTD
(svn r10299) -Codechange [FS#931]: industry foundations should be drawn as all other foundations, i.e. with DrawFoundation, instead of writing the same functionality itself.
parent
6402d00190
commit
e12e83ef5f
|
@ -282,14 +282,12 @@ static void DrawTile_Industry(TileInfo *ti)
|
||||||
z = ti->z;
|
z = ti->z;
|
||||||
/* Add bricks below the industry? */
|
/* Add bricks below the industry? */
|
||||||
if (ti->tileh != SLOPE_FLAT) {
|
if (ti->tileh != SLOPE_FLAT) {
|
||||||
AddSortableSpriteToDraw(SPR_FOUNDATION_BASE + ti->tileh, PAL_NONE, ti->x, ti->y, 16, 16, 7, z);
|
DrawFoundation(ti, ti->tileh);
|
||||||
AddChildSpriteScreen(image, pal, 31, 1);
|
|
||||||
z += TILE_HEIGHT;
|
z += TILE_HEIGHT;
|
||||||
} else {
|
|
||||||
/* Else draw regular ground */
|
|
||||||
DrawGroundSprite(image, pal);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DrawGroundSprite(image, pal);
|
||||||
|
|
||||||
/* Add industry on top of the ground? */
|
/* Add industry on top of the ground? */
|
||||||
image = dits->building.sprite;
|
image = dits->building.sprite;
|
||||||
if (image != 0) {
|
if (image != 0) {
|
||||||
|
|
Loading…
Reference in New Issue