From 14ae83ced5440480ca0d44886d9ff82d17943a0d Mon Sep 17 00:00:00 2001 From: RossM Date: Sun, 18 Mar 2012 16:54:47 -0700 Subject: [PATCH] Correctly handle military dwarves. --- plugins/autolabor/autolabor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/autolabor/autolabor.cpp b/plugins/autolabor/autolabor.cpp index 209d0c8f9..478c53ee0 100644 --- a/plugins/autolabor/autolabor.cpp +++ b/plugins/autolabor/autolabor.cpp @@ -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;