summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2004-11-11 23:10:22 +0000
committertron <tron@openttd.org>2004-11-11 23:10:22 +0000
commit65058d0d57ebe6cce1872440b2327b47324831e4 (patch)
tree093ddb846a0325a183e5fdc184bfb25f28966b05
parent7a97e54559bdbd732fdfd443b84c68a82ffcb758 (diff)
downloadopenttd-65058d0d57ebe6cce1872440b2327b47324831e4.tar.xz
(svn r542) -Fix: Display correct rail type in "build railway station" window
Thanks, ln--
-rw-r--r--station_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/station_cmd.c b/station_cmd.c
index b4aeacfbb..23f5b17cc 100644
--- a/station_cmd.c
+++ b/station_cmd.c
@@ -1797,7 +1797,7 @@ void StationPickerDrawSprite(int x, int y, int railtype, int image)
t += sizeof(uint32);
if (img & 0x8000)
img |= ormod;
- DrawSprite(img, x, y);
+ DrawSprite(img + railtype, x, y);
for(dtss = (const DrawTileSeqStruct *)t; (byte)dtss->delta_x != 0x80; dtss++) {
Point pt = RemapCoords(dtss->delta_x, dtss->delta_y, dtss->delta_z);