returns true if b should be butchered before a
| 228 | |
| 229 | // returns true if b should be butchered before a |
| 230 | static bool compareAdults(df::unit* a, df::unit* b) { |
| 231 | if (isHighPriority(a) != isHighPriority(b)) |
| 232 | return isHighPriority(b); |
| 233 | if (Units::isDomesticated(a) != Units::isDomesticated(b)) |
| 234 | return Units::isDomesticated(a); |
| 235 | return Units::getAge(a, true) < Units::getAge(b, true); |
| 236 | } |
| 237 | |
| 238 | struct WatchedRace { |
| 239 | public: |
nothing calls this directly
no test coverage detected