(svn r8514) -Codechange: Turn IsBuoy into a method of stations
This commit is contained in:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user