@@ -155,12 +155,14 @@ struct BaseStation : StationPool::PoolIt
* @return true if still in use
*/
FORCEINLINE bool IsInUse() const
{
return (this->facilities & ~FACIL_WAYPOINT) != 0;
}
static void PostDestructor(size_t index);
};
#define FOR_ALL_BASE_STATIONS(var) FOR_ALL_ITEMS_FROM(BaseStation, station_index, var, 0)
/**
* Class defining several overloaded accessors so we don't
@@ -113,13 +113,13 @@ Station::~Station()
* Invalidating of the JoinStation window has to be done
* after removing item from the pool.
* @param index index of deleted item
void Station::PostDestructor(size_t index)
void BaseStation::PostDestructor(size_t index)
InvalidateWindowData(WC_SELECT_STATION, 0, 0);
* Get the primary road stop (the first road stop) that the given vehicle can load/unload.
@@ -116,13 +116,11 @@ public:
return IsRailStationTile(tile) && GetStationIndex(tile) == this->index;
/* virtual */ uint32 GetNewGRFVariable(const ResolverObject *object, byte variable, byte parameter, bool *available) const;
/* virtual */ void GetTileArea(TileArea *ta, StationType type) const;
#define FOR_ALL_STATIONS(var) FOR_ALL_BASE_STATIONS_OF_TYPE(Station, var)
#endif /* STATION_BASE_H */
Status change: