(svn r10601) -Codechange: store (and use) the type of stations instead of hardcoding station types by graphics IDs.

This commit is contained in:
rubidium
2007-07-16 23:55:22 +00:00
parent 210e3c7085
commit 45b0b7755d
17 changed files with 226 additions and 341 deletions

View File

@@ -757,7 +757,7 @@ bool DrawStationTile(int x, int y, RailType railtype, Axis axis, StationClassID
}
if (statspec->renderdata == NULL) {
sprites = GetStationTileLayout(tile + axis);
sprites = GetStationTileLayout(STATION_RAIL, tile + axis);
} else {
sprites = &statspec->renderdata[(tile < statspec->tiles) ? tile + axis : (uint)axis];
}