(svn r16862) -Codechange: make waypoints use the same system of station station spec lists.

This commit is contained in:
rubidium
2009-07-17 20:40:29 +00:00
parent 72d6c3a9ad
commit c9cab7ba19
4 changed files with 35 additions and 17 deletions

View File

@@ -1938,9 +1938,11 @@ static void DrawTile_Track(TileInfo *ti)
}
} else {
/* look for customization */
const StationSpec *statspec = GetWaypointByTile(ti->tile)->spec.spec;
const Waypoint *wp = GetWaypointByTile(ti->tile);
if (wp->num_specs != 0) {
const StationSpec *statspec = wp->speclist->spec;
if (statspec != NULL) {
/* emulate station tile - open with building */
const Station *st = ComposeWaypointStation(ti->tile);
uint gfx = 2;