summaryrefslogtreecommitdiff
path: root/station_cmd.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-04-16 17:29:37 +0000
committerpeter1138 <peter1138@openttd.org>2006-04-16 17:29:37 +0000
commit857b8b045b8fea9d2c77e12d4f4fc309c0912f53 (patch)
tree679749a254a043ab9b75d05ea46a7f16bec8c0ae /station_cmd.c
parenta337809198a90fc3f6af2187956ad0e4849cce6e (diff)
downloadopenttd-857b8b045b8fea9d2c77e12d4f4fc309c0912f53.tar.xz
(svn r4450) - NewStations, rename *CustomStationSprite() to *CustomStationSpecIndex() to reflect their use, and alter the test for determining if a station has customised graphics.
Diffstat (limited to 'station_cmd.c')
-rw-r--r--station_cmd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/station_cmd.c b/station_cmd.c
index 117a0944c..b07d2c570 100644
--- a/station_cmd.c
+++ b/station_cmd.c
@@ -1061,7 +1061,7 @@ int32 CmdBuildRailroadStation(TileIndex tile_org, uint32 flags, uint32 p1, uint3
MakeRailStation(tile, st->owner, st->index, axis, *layout_ptr++, GB(p2, 0, 4));
- if (HASBIT(p2, 4)) SetCustomStationSprite(tile, GB(p2, 8, 8));
+ if (HASBIT(p2, 4)) SetCustomStationSpecIndex(tile, GB(p2, 8, 8));
tile += tile_delta;
} while (--w);
@@ -1934,9 +1934,9 @@ static void DrawTile_Station(TileInfo *ti)
if (ti->tileh != 0 && !IsDock(ti->tile))
DrawFoundation(ti, ti->tileh);
- if (IsCustomStationSprite(ti->tile)) {
+ if (IsCustomStationSpecIndex(ti->tile)) {
// look for customization
- const StationSpec *statspec = GetCustomStation(STAT_CLASS_DFLT, GetCustomStationSprite(ti->tile));
+ const StationSpec *statspec = GetCustomStation(STAT_CLASS_DFLT, GetCustomStationSpecIndex(ti->tile));
//debug("Cust-o-mized %p", statspec);