diff options
author | maedhros <maedhros@openttd.org> | 2007-09-23 10:54:11 +0000 |
---|---|---|
committer | maedhros <maedhros@openttd.org> | 2007-09-23 10:54:11 +0000 |
commit | 6a45faeeda0f51501ad96a4d596b19c72c622367 (patch) | |
tree | acfb9d1a4a5694532b029ba078a61a9d00c8a921 /src/newgrf_house.cpp | |
parent | 45357015a531c047eb4d6e88279ea51e0d6b46d8 (diff) | |
download | openttd-6a45faeeda0f51501ad96a4d596b19c72c622367.tar.xz |
(svn r11149) -Fix [FS#1225]: Draw building stages for new house ground sprites.
Diffstat (limited to 'src/newgrf_house.cpp')
-rw-r--r-- | src/newgrf_house.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/newgrf_house.cpp b/src/newgrf_house.cpp index 921c0dc10..f4fb9bf9a 100644 --- a/src/newgrf_house.cpp +++ b/src/newgrf_house.cpp @@ -308,14 +308,18 @@ void DrawTileLayout(const TileInfo *ti, const SpriteGroup *group, byte stage, Ho SpriteID image = dts->ground_sprite; SpriteID pal = dts->ground_pal; + if (IS_CUSTOM_SPRITE(image)) image += stage; + if (GB(image, 0, SPRITE_WIDTH) != 0) DrawGroundSprite(image, pal); foreach_draw_tile_seq(dtss, dts->seq) { if (GB(dtss->image, 0, SPRITE_WIDTH) == 0) continue; - image = dtss->image + stage; + image = dtss->image; pal = dtss->pal; + if (IS_CUSTOM_SPRITE(image)) image += stage; + if ((HASBIT(image, SPRITE_MODIFIER_OPAQUE) || !HASBIT(_transparent_opt, TO_HOUSES)) && HASBIT(image, PALETTE_MODIFIER_COLOR)) { if (pal == 0) { const HouseSpec *hs = GetHouseSpecs(house_id); |