Allow building multiple docks per station.

(cherry picked from commit 0110c4a35d383e0be2cbb53cbe9cbe6784abb3e9)

# Conflicts:
#	src/station_cmd.cpp
This commit is contained in:
keldorkatarn
2017-09-11 22:48:19 +02:00
committed by Jonathan G Rennison
parent d486d58d86
commit 1d3cf59d8a
26 changed files with 412 additions and 62 deletions

View File

@@ -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);
};