tron@3959: /* $Id$ */ tron@3959: peter1138@4666: #ifndef ROADVEH_H peter1138@4666: #define ROADVEH_H peter1138@4666: tron@3959: #include "vehicle.h" tron@3959: tron@3959: tron@3959: static inline bool IsRoadVehInDepot(const Vehicle* v) tron@3959: { tron@3959: assert(v->type == VEH_Road); tron@3959: return v->u.road.state == 254; tron@3959: } tron@3959: tron@3959: static inline bool IsRoadVehInDepotStopped(const Vehicle* v) tron@3959: { tron@3959: return IsRoadVehInDepot(v) && v->vehstatus & VS_STOPPED; tron@3959: } bjarni@4653: bjarni@4653: void CcCloneRoadVeh(bool success, TileIndex tile, uint32 p1, uint32 p2); peter1138@4666: peter1138@4666: #endif /* ROADVEH_H */