diff options
author | frosch <frosch@openttd.org> | 2010-01-16 22:44:03 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-01-16 22:44:03 +0000 |
commit | 381bf04bab14528ab47b95a944f67c2769d44b81 (patch) | |
tree | 51a17f099d77bcc9467ffb2e73a57f300b20bd3c /src/station_cmd.cpp | |
parent | 719fb9803cbae4623f5b3be5ed1c3cc6c3e89c98 (diff) | |
download | openttd-381bf04bab14528ab47b95a944f67c2769d44b81.tar.xz |
(svn r18839) -Codechange: Detriplicate drawing of spritelayouts in the GUI.
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r-- | src/station_cmd.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index e3e041195..9fcd078f2 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -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) |