| 209 | } |
| 210 | |
| 211 | static void doMarkForSlaughter(df::unit *unit) { |
| 212 | DEBUG(cycle).print("marking unit {} for slaughter: {}, {}, high priority: {}, age: {:.2f}\n", |
| 213 | unit->id, Units::getReadableName(unit), |
| 214 | Units::isFemale(unit) ? "female" : "male", |
| 215 | isHighPriority(unit) ? "yes" : "no", |
| 216 | Units::getAge(unit)); |
| 217 | unit->flags2.bits.slaughter = 1; |
| 218 | } |
| 219 | |
| 220 | // returns true if b should be butchered before a |
| 221 | static bool compareKids(df::unit *a, df::unit *b) { |
no test coverage detected