summaryrefslogtreecommitdiff
path: root/plugins/mapexport
diff options
context:
space:
mode:
authorMike Stewart2012-02-05 13:51:49 -0800
committerMike Stewart2012-02-05 13:51:49 -0800
commitcdb171e9b12e133da41e4505a77625af71e631a1 (patch)
tree88f0cee9b5591300a128846d651221341fcc95b2 /plugins/mapexport
parent6ac50fccbd4407e4e7cdd0ac26616dc8cb776f37 (diff)
downloaddfhack-cdb171e9b12e133da41e4505a77625af71e631a1.tar.gz
dfhack-cdb171e9b12e133da41e4505a77625af71e631a1.tar.bz2
dfhack-cdb171e9b12e133da41e4505a77625af71e631a1.tar.xz
Fixed an issue with hidden plants.
Diffstat (limited to 'plugins/mapexport')
-rw-r--r--plugins/mapexport/mapexport.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mapexport/mapexport.cpp b/plugins/mapexport/mapexport.cpp
index 768f1b7f..5053a3a6 100644
--- a/plugins/mapexport/mapexport.cpp
+++ b/plugins/mapexport/mapexport.cpp
@@ -259,12 +259,12 @@ DFhackCExport command_result mapexport (Core * c, std::vector <std::string> & pa
{
for (PlantList::const_iterator it = plants->begin(); it != plants->end(); it++)
{
- dfproto::Plant *protoplant = protoblock.add_plant();
const df::plant & plant = *(*it);
df::coord2d loc(plant.pos.x, plant.pos.y);
loc = loc % 16;
if (showHidden || !b->DesignationAt(loc).bits.hidden)
{
+ dfproto::Plant *protoplant = protoblock.add_plant();
protoplant->set_x(loc.x);
protoplant->set_y(loc.y);
protoplant->set_is_shrub(plant.flags.bits.is_shrub);