(svn r11190) -Fix: make snowy roofs of (newgrf) houses also transparent.

This commit is contained in:
rubidium
2007-09-30 19:33:40 +00:00
parent 171374a8f0
commit a2256f6b0f
5 changed files with 11 additions and 5 deletions

View File

@@ -613,13 +613,19 @@ void EndSpriteCombine()
_cur_vd->combine_sprites = 0;
}
void AddChildSpriteScreen(SpriteID image, SpriteID pal, int x, int y)
void AddChildSpriteScreen(SpriteID image, SpriteID pal, int x, int y, bool transparent)
{
ViewportDrawer *vd = _cur_vd;
ChildScreenSpriteToDraw *cs;
assert((image & SPRITE_MASK) < MAX_SPRITES);
/* make the sprites transparent with the right palette */
if (transparent) {
SETBIT(image, PALETTE_MODIFIER_TRANSPARENT);
pal = PALETTE_TO_TRANSPARENT;
}
if (vd->spritelist_mem >= vd->eof_spritelist_mem) {
DEBUG(sprite, 0, "Out of sprite memory");
return;