Correctly handle military dwarves.

develop
RossM 2012-03-18 16:54:47 -07:00
parent 89edfd4e15
commit 14ae83ced5
1 changed files with 3 additions and 1 deletions

@ -580,7 +580,9 @@ DFhackCExport command_result plugin_onupdate ( color_ostream &out )
}
else if (dwarfs[dwarf]->job.current_job == NULL)
{
if (is_on_break)
if (ENUM_ATTR(profession, military, dwarfs[dwarf]->profession))
dwarf_info[dwarf].state = MILITARY;
else if (is_on_break)
dwarf_info[dwarf].state = OTHER;
else if (dwarfs[dwarf]->meetings.size() > 0)
dwarf_info[dwarf].state = OTHER;