(svn r19463) -Codechange: add helper function to determine if an airport has at least one hangar
This commit is contained in:
@@ -62,6 +62,11 @@ struct Airport : public TileArea {
|
||||
{
|
||||
return this->GetSpec()->fsm;
|
||||
}
|
||||
|
||||
FORCEINLINE bool HasHangar() const
|
||||
{
|
||||
return this->GetSpec()->nof_depots > 0;
|
||||
}
|
||||
};
|
||||
|
||||
typedef SmallVector<Industry *, 2> IndustryVector;
|
||||
|
||||
Reference in New Issue
Block a user