branch | cpp_gui |
changeset 6298 | c30fe89622df |
parent 6037 | 7409c8f581e1 |
child 6307 | f40e88cff863 |
child 6719 | 4cc327ad39d5 |
child 6889 | f7f6d9cb07a0 |
6297:4bf29d14edba | 6298:c30fe89622df |
---|---|
6 #include "vehicle.h" |
6 #include "vehicle.h" |
7 |
7 |
8 |
8 |
9 static inline bool IsRoadVehInDepot(const Vehicle* v) |
9 static inline bool IsRoadVehInDepot(const Vehicle* v) |
10 { |
10 { |
11 assert(v->type == VEH_Road); |
11 assert(v->type == VEH_ROAD); |
12 return v->u.road.state == 254; |
12 return v->u.road.state == 254; |
13 } |
13 } |
14 |
14 |
15 static inline bool IsRoadVehInDepotStopped(const Vehicle* v) |
15 static inline bool IsRoadVehInDepotStopped(const Vehicle* v) |
16 { |
16 { |