summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-06-24 10:20:05 +0000
committerrubidium <rubidium@openttd.org>2007-06-24 10:20:05 +0000
commite12e83ef5ff0a5d9c4cfbcd31d5c4659990e5590 (patch)
tree079f44e582e6171bb90f042b520fd268f94ba7ab
parent6402d001909cc0f47fa3d9654b331c0ad96267f5 (diff)
downloadopenttd-e12e83ef5ff0a5d9c4cfbcd31d5c4659990e5590.tar.xz
(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.
-rw-r--r--src/industry_cmd.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp
index 4ae71a1a3..1c6980d18 100644
--- a/src/industry_cmd.cpp
+++ b/src/industry_cmd.cpp
@@ -282,14 +282,12 @@ static void DrawTile_Industry(TileInfo *ti)
z = ti->z;
/* Add bricks below the industry? */
if (ti->tileh != SLOPE_FLAT) {
- AddSortableSpriteToDraw(SPR_FOUNDATION_BASE + ti->tileh, PAL_NONE, ti->x, ti->y, 16, 16, 7, z);
- AddChildSpriteScreen(image, pal, 31, 1);
+ DrawFoundation(ti, ti->tileh);
z += TILE_HEIGHT;
- } else {
- /* Else draw regular ground */
- DrawGroundSprite(image, pal);
}
+ DrawGroundSprite(image, pal);
+
/* Add industry on top of the ground? */
image = dits->building.sprite;
if (image != 0) {