From f5b41a2fbb5e164f1c103e7f6d3cd4babb2aaa84 Mon Sep 17 00:00:00 2001 From: tron Date: Wed, 31 Jan 2007 04:34:56 +0000 Subject: (svn r8474) -Fix Turn GetPrimaryRoadStop() into a method of struct Station --- src/station.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/station.h') 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); -- cgit v1.2.3-54-g00ecf