(svn r8514) -Codechange: Turn IsBuoy into a method of stations

This commit is contained in:
celestar
2007-02-01 16:48:38 +00:00
parent 33cadd5043
commit 5678febfe2
5 changed files with 13 additions and 9 deletions

View File

@@ -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 */