(svn r4450) - NewStations, rename *CustomStationSprite() to *CustomStationSpecIndex() to reflect their use, and alter the test for determining if a station has customised graphics.

This commit is contained in:
2006-04-16 17:29:37 +00:00
parent a337809198
commit 857b8b045b
4 changed files with 10 additions and 12 deletions

View File

@@ -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);