| 418 | } |
| 419 | |
| 420 | static bool was_expelled(df::historical_figure *hf) { |
| 421 | if (!hf || !hf->info || !hf->info->whereabouts) |
| 422 | return false; |
| 423 | auto army = df::army::find(hf->info->whereabouts->army_id); |
| 424 | if (!army || !army->controller) |
| 425 | return false; |
| 426 | return army->controller->goal == df::army_controller_goal_type::MOVE_TO_SITE; |
| 427 | } |
| 428 | |
| 429 | // handles when units disappear from their assignments compared to the last scan |
| 430 | static void handle_missing_assignments(color_ostream &out, |
no test coverage detected