From e7c55ab6e162c1fbc32741d6283780805dea96e7 Mon Sep 17 00:00:00 2001 From: Kelly Martin Date: Mon, 30 Apr 2012 09:01:48 -0500 Subject: [PATCH] Also exclude trader from hauling when requested at depot. --- plugins/autolabor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/autolabor.cpp b/plugins/autolabor.cpp index 49bd2afc1..2eaa27b2b 100644 --- a/plugins/autolabor.cpp +++ b/plugins/autolabor.cpp @@ -1130,6 +1130,8 @@ DFhackCExport command_result plugin_onupdate ( color_ostream &out ) std::vector hauler_ids; for (int dwarf = 0; dwarf < n_dwarfs; dwarf++) { + if (dwarf_info[dwarf].trader && trader_requested) + continue; if (dwarf_info[dwarf].state == IDLE || dwarf_info[dwarf].state == BUSY) hauler_ids.push_back(dwarf); }