(svn r18839) -Codechange: Detriplicate drawing of spritelayouts in the GUI.

This commit is contained in:
frosch
2010-01-16 22:44:03 +00:00
parent ff69edfc17
commit 6c72390087
5 changed files with 52 additions and 51 deletions

View File

@@ -2476,11 +2476,7 @@ void StationPickerDrawSprite(int x, int y, StationType st, RailType railtype, Ro
DrawSprite(SPR_TRAMWAY_TRAM + (t->ground.sprite == SPR_ROAD_PAVED_STRAIGHT_X ? 1 : 0), PAL_NONE, x, y);
}
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.sprite + total_offset, pal, x + pt.x, y + pt.y);
}
DrawCommonTileSeqInGUI(x, y, t, total_offset, 0, pal);
}
static uint GetSlopeZ_Station(TileIndex tile, uint x, uint y)