summaryrefslogtreecommitdiff
path: root/src/newgrf_station.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-05-08 15:58:59 +0000
committerfrosch <frosch@openttd.org>2011-05-08 15:58:59 +0000
commit76c7cbff70e2cd4ea86a58f3efe2eed1839e5986 (patch)
tree96f7daf731da1dbbae4d6798f86a0dc2c59ba231 /src/newgrf_station.cpp
parent28067c21d5cc155f72c85374f8463bf8ceb1f0a0 (diff)
downloadopenttd-76c7cbff70e2cd4ea86a58f3efe2eed1839e5986.tar.xz
(svn r22436) -Fix (r18969): Apply railtype property 12 (station graphics) also to station groundsprites from action 1.
Diffstat (limited to 'src/newgrf_station.cpp')
-rw-r--r--src/newgrf_station.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp
index 06216df69..fd7a730dd 100644
--- a/src/newgrf_station.cpp
+++ b/src/newgrf_station.cpp
@@ -768,14 +768,14 @@ bool DrawStationTile(int x, int y, RailType railtype, Axis axis, StationClassID
PaletteID pal = sprites->ground.pal;
if (HasBit(image, SPRITE_MODIFIER_CUSTOM_SPRITE)) {
image += GetCustomStationGroundRelocation(statspec, NULL, INVALID_TILE);
- image += rti->custom_ground_offset;
+ image += rti->fallback_railtype;
} else {
- image += rti->total_offset;
+ image += rti->GetRailtypeSpriteOffset();
}
DrawSprite(image, GroundSpritePaletteTransform(image, pal, palette), x, y);
- DrawRailTileSeqInGUI(x, y, sprites, rti->total_offset, relocation, palette);
+ DrawRailTileSeqInGUI(x, y, sprites, rti->GetRailtypeSpriteOffset(), relocation, palette);
return true;
}