(svn r4754) - Newstations: expose default station display data via a function so we can use it (rarely) in other places.

This commit is contained in:
2006-05-06 20:33:22 +00:00
parent 5c94fd7afa
commit f689b20874
3 changed files with 11 additions and 1 deletions

View File

@@ -1336,7 +1336,12 @@ static void DrawTile_Track(TileInfo *ti)
if (callback != CALLBACK_FAILED) tile = callback;
}
cust = &statspec->renderdata[(tile < statspec->tiles ? tile : 0) + GetWaypointAxis(ti->tile)];
if (statspec->renderdata == NULL) {
cust = GetStationTileLayout(tile);
relocation -= 0x42D;
} else {
cust = &statspec->renderdata[(tile < statspec->tiles ? tile : 0) + GetWaypointAxis(ti->tile)];
}
/* If there is no sprite layout, we fall back to the default waypoint graphics. */
if (cust != NULL && cust->seq != NULL) {