diff options
| author | Alexander Gavrilov | 2012-04-11 12:01:27 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-04-11 12:01:27 +0400 |
| commit | c7b922250b5e41cb78b8636a706fdc07be615974 (patch) | |
| tree | 2264c4993db36afae51853307505c7572017bf82 /plugins/mapexport | |
| parent | 59ddbfacb70a8f56e3fa2088ada1df71d8d158de (diff) | |
| download | dfhack-c7b922250b5e41cb78b8636a706fdc07be615974.tar.gz dfhack-c7b922250b5e41cb78b8636a706fdc07be615974.tar.bz2 dfhack-c7b922250b5e41cb78b8636a706fdc07be615974.tar.xz | |
More maps api refactoring and renaming.
getBlockAbs is a very confusing name; getTileBlock is better.
Diffstat (limited to 'plugins/mapexport')
| -rw-r--r-- | plugins/mapexport/mapexport.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mapexport/mapexport.cpp b/plugins/mapexport/mapexport.cpp index 805261c2..e0a7e5e6 100644 --- a/plugins/mapexport/mapexport.cpp +++ b/plugins/mapexport/mapexport.cpp @@ -241,9 +241,9 @@ command_result mapexport (color_ostream &out, std::vector <std::string> & parame } } - PlantList *plants; - if (Maps::ReadVegetation(b_x, b_y, z, plants)) + if (b->getRaw()) { + PlantList *plants = &b->getRaw()->plants; for (PlantList::const_iterator it = plants->begin(); it != plants->end(); it++) { const df::plant & plant = *(*it); |
