# HG changeset patch # User rubidium # Date 1182680405 0 # Node ID fa6a933b71d25f5dc20674909ba844bc2a3e6e65 # Parent 31257d744079eda0b89dfef21a75879eb5668dcb (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. diff -r 31257d744079 -r fa6a933b71d2 src/industry_cmd.cpp --- a/src/industry_cmd.cpp Sat Jun 23 21:12:09 2007 +0000 +++ b/src/industry_cmd.cpp Sun Jun 24 10:20:05 2007 +0000 @@ -282,14 +282,12 @@ 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) {