| 798 | } |
| 799 | |
| 800 | WatchedRace * checkRaceStocksButcherFlag(color_ostream &out, int race) { |
| 801 | WatchedRace * w = new WatchedRace(out, race, true, 0, 0, 0, 0); |
| 802 | for (auto unit : world->units.active) { |
| 803 | if(unit->race != race) |
| 804 | continue; |
| 805 | |
| 806 | if (isInappropriateUnit(unit)) |
| 807 | continue; |
| 808 | |
| 809 | if (Units::isMarkedForSlaughter(unit)) |
| 810 | w->PushButcherableUnit(unit); |
| 811 | } |
| 812 | return w; |
| 813 | } |
| 814 | |
| 815 | static bool autowatch_isEnabled() { |
| 816 | return config.get_bool(CONFIG_AUTOWATCH); |
no test coverage detected