diff options
author | frosch <frosch@openttd.org> | 2010-01-17 00:51:18 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-01-17 00:51:18 +0000 |
commit | 707cf045f8703700887757ecfa4e309b61e2fd4f (patch) | |
tree | a41bf46b433b8aa266d42846facb80234176abff /src/station_cmd.cpp | |
parent | 2e9529aff3a94bbd77958244fbc56da278eb5204 (diff) | |
download | openttd-707cf045f8703700887757ecfa4e309b61e2fd4f.tar.xz |
(svn r18841) -Fix (r16869): Default-waypoint was drawn incorrectly for monorail and maglev in the waypoint picker.
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r-- | src/station_cmd.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 9fcd078f2..41c21751e 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -2476,7 +2476,8 @@ 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); } - DrawCommonTileSeqInGUI(x, y, t, total_offset, 0, pal); + /* Default waypoint has no railtype specific sprites */ + DrawCommonTileSeqInGUI(x, y, t, st == STATION_WAYPOINT ? 0 : total_offset, 0, pal); } static uint GetSlopeZ_Station(TileIndex tile, uint x, uint y) |