diff options
author | frosch <frosch@openttd.org> | 2011-05-08 15:58:59 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2011-05-08 15:58:59 +0000 |
commit | 76c7cbff70e2cd4ea86a58f3efe2eed1839e5986 (patch) | |
tree | 96f7daf731da1dbbae4d6798f86a0dc2c59ba231 /src/station_cmd.cpp | |
parent | 28067c21d5cc155f72c85374f8463bf8ceb1f0a0 (diff) | |
download | openttd-76c7cbff70e2cd4ea86a58f3efe2eed1839e5986.tar.xz |
(svn r22436) -Fix (r18969): Apply railtype property 12 (station graphics) also to station groundsprites from action 1.
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r-- | src/station_cmd.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 7edaf7928..d8a4a553a 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -2507,8 +2507,8 @@ static void DrawTile_Station(TileInfo *ti) if (HasStationRail(ti->tile)) { rti = GetRailTypeInfo(GetRailType(ti->tile)); roadtypes = ROADTYPES_NONE; - total_offset = rti->total_offset; - custom_ground_offset = rti->custom_ground_offset; + total_offset = rti->GetRailtypeSpriteOffset(); + custom_ground_offset = rti->fallback_railtype; if (IsCustomStationSpecIndex(ti->tile)) { /* look for customization */ @@ -2713,7 +2713,7 @@ void StationPickerDrawSprite(int x, int y, StationType st, RailType railtype, Ro if (railtype != INVALID_RAILTYPE) { rti = GetRailTypeInfo(railtype); - total_offset = rti->total_offset; + total_offset = rti->GetRailtypeSpriteOffset(); } SpriteID img = t->ground.sprite; |