author | truelight |
Fri, 14 Jul 2006 18:45:31 +0000 | |
branch | 0.4 |
changeset 10061 | 2f16698d8206 |
parent 10035 | 23985f53225c |
child 3987 | 96b119a9fb94 |
permissions | -rw-r--r-- |
10035 | 1 |
/* $Id$ */ |
2 |
||
3 |
#include "station_map.h" |
|
4 |
#include "vehicle.h" |
|
5 |
||
6 |
||
7 |
static inline bool IsAircraftInHangar(const Vehicle* v) |
|
8 |
{ |
|
9 |
assert(v->type == VEH_Aircraft); |
|
10 |
return v->vehstatus & VS_HIDDEN && IsHangarTile(v->tile); |
|
11 |
} |
|
12 |
||
13 |
static inline bool IsAircraftInHangarStopped(const Vehicle* v) |
|
14 |
{ |
|
15 |
return IsAircraftInHangar(v) && v->vehstatus & VS_STOPPED; |
|
16 |
} |