(svn r11149) -Fix [FS#1225]: Draw building stages for new house ground sprites.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user