diff options
author | celestar <celestar@openttd.org> | 2007-02-01 16:48:38 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2007-02-01 16:48:38 +0000 |
commit | 4d0d6864ee38dd838d5b6717b3409b336eb7fbf9 (patch) | |
tree | 5cfbae0423a54b9a908dcd3d47a2a9c688ba5d8c /src/station.h | |
parent | 51db81921c6cd56bfdc7c52b726542a20c19116f (diff) | |
download | openttd-4d0d6864ee38dd838d5b6717b3409b336eb7fbf9.tar.xz |
(svn r8514) -Codechange: Turn IsBuoy into a method of stations
Diffstat (limited to 'src/station.h')
-rw-r--r-- | src/station.h | 6 |
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 */ |