Mercurial > hg > openttd
diff src/station_cmd.cpp @ 8570:2b1397dd930a draft
(svn r12148) -Codechange: Merge 'image' and 'pal' of DrawTileSeqStruct into one PalSpriteID
author | frosch <frosch@openttd.org> |
---|---|
date | Fri, 15 Feb 2008 18:34:26 +0000 (2008-02-15) |
parents | 992fa65afba1 |
children | b611278e4fed |
line wrap: on
line diff
--- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -2190,7 +2190,7 @@ const DrawTileSeqStruct *dtss; foreach_draw_tile_seq(dtss, t->seq) { - SpriteID image = dtss->image; + SpriteID image = dtss->image.sprite; if (relocation == 0 || HasBit(image, SPRITE_MODIFIER_USE_OFFSET)) { image += total_offset; } else { @@ -2201,7 +2201,7 @@ if (!(!HasBit(image, SPRITE_MODIFIER_OPAQUE) && IsTransparencySet(TO_BUILDINGS)) && HasBit(image, PALETTE_MODIFIER_COLOR)) { pal = palette; } else { - pal = dtss->pal; + pal = dtss->image.pal; } if ((byte)dtss->delta_z != 0x80) { @@ -2239,7 +2239,7 @@ const DrawTileSeqStruct *dtss; foreach_draw_tile_seq(dtss, t->seq) { Point pt = RemapCoords(dtss->delta_x, dtss->delta_y, dtss->delta_z); - DrawSprite(dtss->image + total_offset, pal, x + pt.x, y + pt.y); + DrawSprite(dtss->image.sprite + total_offset, pal, x + pt.x, y + pt.y); } }