diff options
| author | Mike Stewart | 2012-02-05 13:51:49 -0800 |
|---|---|---|
| committer | Mike Stewart | 2012-02-05 13:51:49 -0800 |
| commit | cdb171e9b12e133da41e4505a77625af71e631a1 (patch) | |
| tree | 88f0cee9b5591300a128846d651221341fcc95b2 /plugins/mapexport | |
| parent | 6ac50fccbd4407e4e7cdd0ac26616dc8cb776f37 (diff) | |
| download | dfhack-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.cpp | 2 |
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); |
