aircraft.h
changeset 3963 6cab57074a9a
child 3987 22972f38e240
equal deleted inserted replaced
3962:b53bf74fbcef 3963:6cab57074a9a
       
     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 }