diff options
author | frosch <frosch@openttd.org> | 2012-04-22 16:28:14 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-04-22 16:28:14 +0000 |
commit | 0f0e7e43cf09c0ff82e4119b08956670160aaa58 (patch) | |
tree | 73eac59bde99d2517e2766ada36995fe7952d2d3 /src/newgrf_station.cpp | |
parent | cb434944885d5e5caa857deb3273712c4c223031 (diff) | |
download | openttd-0f0e7e43cf09c0ff82e4119b08956670160aaa58.tar.xz |
(svn r24166) -Codechange: Turn NewGRFClass::Get(Tid, uint) and GetCount(Tid) into non-static members GetSpec(uint) and GetSpecCount().
Diffstat (limited to 'src/newgrf_station.cpp')
-rw-r--r-- | src/newgrf_station.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp index 90751cdcb..e48ad935d 100644 --- a/src/newgrf_station.cpp +++ b/src/newgrf_station.cpp @@ -805,13 +805,12 @@ void DeallocateSpecFromStation(BaseStation *st, byte specindex) */ bool DrawStationTile(int x, int y, RailType railtype, Axis axis, StationClassID sclass, uint station) { - const StationSpec *statspec; const DrawTileSprites *sprites = NULL; const RailtypeInfo *rti = GetRailTypeInfo(railtype); PaletteID palette = COMPANY_SPRITE_COLOUR(_local_company); uint tile = 2; - statspec = StationClass::Get(sclass, station); + const StationSpec *statspec = StationClass::Get(sclass)->GetSpec(station); if (statspec == NULL) return false; if (HasBit(statspec->callback_mask, CBM_STATION_SPRITE_LAYOUT)) { |