summaryrefslogtreecommitdiff
path: root/plugins/autolabor.cpp
diff options
context:
space:
mode:
authorPetr Mrázek2012-03-30 20:30:28 +0200
committerPetr Mrázek2012-03-30 20:30:28 +0200
commit61fe6056764ee29a24b4ee9ca508ab088918a130 (patch)
treef296694fcbe71187015ddba9f6ab66953233d38a /plugins/autolabor.cpp
parent063099e535feb02a4df2e0b89a746af1101871fb (diff)
parent590ea629f36dd1b37fc980104654434278a9f476 (diff)
downloaddfhack-61fe6056764ee29a24b4ee9ca508ab088918a130.tar.gz
dfhack-61fe6056764ee29a24b4ee9ca508ab088918a130.tar.bz2
dfhack-61fe6056764ee29a24b4ee9ca508ab088918a130.tar.xz
Merge https://github.com/RossM/dfhack
Diffstat (limited to 'plugins/autolabor.cpp')
-rw-r--r--plugins/autolabor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/autolabor.cpp b/plugins/autolabor.cpp
index 60a574ce..1b442fe2 100644
--- a/plugins/autolabor.cpp
+++ b/plugins/autolabor.cpp
@@ -500,7 +500,8 @@ DFhackCExport command_result plugin_onupdate ( color_ostream &out )
for (int i = 0; i < world->units.all.size(); ++i)
{
df::unit* cre = world->units.all[i];
- if (cre->race == race && cre->civ_id == civ && !cre->flags1.bits.marauder && !cre->flags1.bits.diplomat && !cre->flags1.bits.merchant && !cre->flags1.bits.dead) {
+ if (cre->race == race && cre->civ_id == civ && !cre->flags1.bits.marauder && !cre->flags1.bits.diplomat && !cre->flags1.bits.merchant &&
+ !cre->flags1.bits.dead && !cre->flags1.bits.forest) {
dwarfs.push_back(cre);
}
}