summaryrefslogtreecommitdiff
path: root/plugins/autolabor.cpp
diff options
context:
space:
mode:
authorKelly Martin2012-04-30 09:01:48 -0500
committerKelly Martin2012-04-30 09:01:48 -0500
commite7c55ab6e162c1fbc32741d6283780805dea96e7 (patch)
tree14ac02f246340f2d1492da6d0a3fbed621ff2ec7 /plugins/autolabor.cpp
parent7c606da636e77280b6a7281464d7e8cd38f7530a (diff)
downloaddfhack-e7c55ab6e162c1fbc32741d6283780805dea96e7.tar.gz
dfhack-e7c55ab6e162c1fbc32741d6283780805dea96e7.tar.bz2
dfhack-e7c55ab6e162c1fbc32741d6283780805dea96e7.tar.xz
Also exclude trader from hauling when requested at depot.
Diffstat (limited to 'plugins/autolabor.cpp')
-rw-r--r--plugins/autolabor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/autolabor.cpp b/plugins/autolabor.cpp
index 49bd2afc..2eaa27b2 100644
--- a/plugins/autolabor.cpp
+++ b/plugins/autolabor.cpp
@@ -1130,6 +1130,8 @@ DFhackCExport command_result plugin_onupdate ( color_ostream &out )
std::vector<int> 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);
}