tron@10034: /* $Id$ */ tron@10034: tron@10034: #include "vehicle.h" tron@10034: tron@10034: tron@10034: static inline bool IsRoadVehInDepot(const Vehicle* v) tron@10034: { tron@10034: assert(v->type == VEH_Road); tron@10034: return v->u.road.state == 254; tron@10034: } tron@10034: tron@10034: static inline bool IsRoadVehInDepotStopped(const Vehicle* v) tron@10034: { tron@10034: return IsRoadVehInDepot(v) && v->vehstatus & VS_STOPPED; tron@10034: }