Allow building multiple docks per station.
(cherry picked from commit 0110c4a35d383e0be2cbb53cbe9cbe6784abb3e9) # Conflicts: # src/station_cmd.cpp
This commit is contained in:
committed by
Jonathan G Rennison
parent
d486d58d86
commit
1d3cf59d8a
@@ -156,6 +156,16 @@ struct BaseStation : StationPool::PoolItem<&_station_pool> {
|
||||
return (this->facilities & ~FACIL_WAYPOINT) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check whether the base station has given facilities.
|
||||
* @param facilities The facilities to check.
|
||||
* @return True if station has at least one of the given \a facilities.
|
||||
*/
|
||||
inline bool HasFacilities(StationFacility facilities) const
|
||||
{
|
||||
return (this->facilities & facilities) != 0;
|
||||
}
|
||||
|
||||
static void PostDestructor(size_t index);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user