diff options
| author | Quietust | 2012-02-13 19:56:55 -0600 |
|---|---|---|
| committer | Quietust | 2012-02-13 19:56:55 -0600 |
| commit | b152a40e836c652e6a18c93e17a5789d98d1409a (patch) | |
| tree | 1aa07e4693afc1021d4b7056ab3e5ab7c02299fb /plugins/getplants.cpp | |
| parent | d15d38d536178b7501b05227d66dbe62e28e498c (diff) | |
| download | dfhack-b152a40e836c652e6a18c93e17a5789d98d1409a.tar.gz dfhack-b152a40e836c652e6a18c93e17a5789d98d1409a.tar.bz2 dfhack-b152a40e836c652e6a18c93e17a5789d98d1409a.tar.xz | |
Fix remaining issues
Diffstat (limited to 'plugins/getplants.cpp')
| -rw-r--r-- | plugins/getplants.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/getplants.cpp b/plugins/getplants.cpp index 334923f1..4281a8e9 100644 --- a/plugins/getplants.cpp +++ b/plugins/getplants.cpp @@ -107,9 +107,9 @@ DFhackCExport command_result df_getplants (Core * c, vector <string> & parameter } df::tiletype_shape shape = tileShape(cur->tiletype[x][y]); df::tiletype_special special = tileSpecial(cur->tiletype[x][y]); - if (plant->flags.bits.is_shrub && (treesonly || (shape != tiletype_shape::SHRUB && special != tiletype_special::DEAD))) + if (plant->flags.bits.is_shrub && (treesonly || !(shape == tiletype_shape::SHRUB && special != tiletype_special::DEAD))) continue; - if (!plant->flags.bits.is_shrub && (shrubsonly || shape != tiletype_shape::TREE)) + if (!plant->flags.bits.is_shrub && (shrubsonly || !(shape == tiletype_shape::TREE))) continue; if (cur->designation[x][y].bits.hidden) continue; |
