blob: 55fc35c899be26cb57fd6f7d059ab757ecc7495a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/* $Id$ */
#include "station_map.h"
#include "vehicle.h"
static inline bool IsAircraftInHangar(const Vehicle* v)
{
assert(v->type == VEH_Aircraft);
return v->vehstatus & VS_HIDDEN && IsHangarTile(v->tile);
}
static inline bool IsAircraftInHangarStopped(const Vehicle* v)
{
return IsAircraftInHangar(v) && v->vehstatus & VS_STOPPED;
}
|