summaryrefslogtreecommitdiff
path: root/src/station.h
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2007-02-01 16:48:38 +0000
committercelestar <celestar@openttd.org>2007-02-01 16:48:38 +0000
commit5678febfe22b9cee3ae90d8335c7969c76c4a6fb (patch)
tree5cfbae0423a54b9a908dcd3d47a2a9c688ba5d8c /src/station.h
parent33cadd5043d8ecf82bdeb10efb2d44528e612846 (diff)
downloadopenttd-5678febfe22b9cee3ae90d8335c7969c76c4a6fb.tar.xz
(svn r8514) -Codechange: Turn IsBuoy into a method of stations
Diffstat (limited to 'src/station.h')
-rw-r--r--src/station.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/station.h b/src/station.h
index 8000bee91..c278a8abe 100644
--- a/src/station.h
+++ b/src/station.h
@@ -161,6 +161,7 @@ struct Station {
void MarkDirty() const;
void MarkTilesDirty() const;
bool TileBelongsToRailStation(TileIndex tile) const;
+ bool IsBuoy() const;
protected:
static Station *AllocateRaw(void);
@@ -272,11 +273,6 @@ uint GetNumRoadStops(const Station* st, RoadStop::Type type);
RoadStop * AllocateRoadStop( void );
void ClearSlot(Vehicle *v);
-static inline bool IsBuoy(const Station* st)
-{
- return (st->had_vehicle_of_type & HVOT_BUOY) != 0; /* XXX: We should really ditch this ugly coding and switch to something sane... */
-}
-
void DeleteOilRig(TileIndex t);
#endif /* STATION_H */