From 3dd6362bb8a07e36eaf621bdf5c256087fbbf8c8 Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 16 Jul 2007 23:55:22 +0000 Subject: (svn r10601) -Codechange: store (and use) the type of stations instead of hardcoding station types by graphics IDs. --- src/newgrf_station.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/newgrf_station.cpp') diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp index e54bbeb64..7e2e40c9b 100644 --- a/src/newgrf_station.cpp +++ b/src/newgrf_station.cpp @@ -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]; } -- cgit v1.2.3-70-g09d2