(svn r12148) -Codechange: Merge 'image' and 'pal' of DrawTileSeqStruct into one PalSpriteID

This commit is contained in:
frosch
2008-02-15 18:34:26 +00:00
parent 03315e88e3
commit ae996a270b
13 changed files with 58 additions and 59 deletions

View File

@@ -297,10 +297,10 @@ void DrawTileLayout(const TileInfo *ti, const SpriteGroup *group, byte stage, Ho
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;
if (GB(dtss->image.sprite, 0, SPRITE_WIDTH) == 0) continue;
image = dtss->image;
pal = dtss->pal;
image = dtss->image.sprite;
pal = dtss->image.pal;
if (IS_CUSTOM_SPRITE(image)) image += stage;