diff options
author | tron <tron@openttd.org> | 2007-01-31 04:34:56 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2007-01-31 04:34:56 +0000 |
commit | 36d965a69730e4d936288e8832dfe5cb787d1756 (patch) | |
tree | 8afaea6febb39a36db50ccc890f5b6804c9e898b /src/station.h | |
parent | 8b4f046fd11a89e6b57da865ca2e9ac6d2502423 (diff) | |
download | openttd-36d965a69730e4d936288e8832dfe5cb787d1756.tar.xz |
(svn r8474) -Fix
Turn GetPrimaryRoadStop() into a method of struct Station
Diffstat (limited to 'src/station.h')
-rw-r--r-- | src/station.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/station.h b/src/station.h index d7edfd427..a79fb3801 100644 --- a/src/station.h +++ b/src/station.h @@ -97,6 +97,12 @@ struct StationRect : public Rect { }; struct Station { + public: + RoadStop *GetPrimaryRoadStop(RoadStop::Type type) const + { + return type == RoadStop::BUS ? bus_stops : truck_stops; + } + TileIndex xy; RoadStop *bus_stops; RoadStop *truck_stops; @@ -270,7 +276,6 @@ const DrawTileSprites *GetStationTileLayout(byte gfx); void StationPickerDrawSprite(int x, int y, RailType railtype, int image); RoadStop * GetRoadStopByTile(TileIndex tile, RoadStop::Type type); -RoadStop * GetPrimaryRoadStop(const Station *st, RoadStop::Type type); uint GetNumRoadStops(const Station* st, RoadStop::Type type); RoadStop * AllocateRoadStop( void ); void ClearSlot(Vehicle *v); |