| 1029 | } |
| 1030 | |
| 1031 | static command_result orders_recheck_command(color_ostream & out) |
| 1032 | { |
| 1033 | size_t count = 0; |
| 1034 | for (auto it : world->manager_orders.all) { |
| 1035 | if (it->item_conditions.size() && it->status.bits.active) { |
| 1036 | ++count; |
| 1037 | it->status.bits.active = false; |
| 1038 | it->status.bits.validated = false; |
| 1039 | } |
| 1040 | } |
| 1041 | out << "Re-checking conditions for " << count << " manager orders." << std::endl; |
| 1042 | return CR_OK; |
| 1043 | } |
| 1044 | |
| 1045 | static command_result orders_recheck_current_command(color_ostream & out) |
| 1046 | { |