summaryrefslogtreecommitdiff
path: root/plugins/prospector.cpp
diff options
context:
space:
mode:
authorAlexander Gavrilov2012-04-11 12:01:27 +0400
committerAlexander Gavrilov2012-04-11 12:01:27 +0400
commitc7b922250b5e41cb78b8636a706fdc07be615974 (patch)
tree2264c4993db36afae51853307505c7572017bf82 /plugins/prospector.cpp
parent59ddbfacb70a8f56e3fa2088ada1df71d8d158de (diff)
downloaddfhack-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/prospector.cpp')
-rw-r--r--plugins/prospector.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/prospector.cpp b/plugins/prospector.cpp
index 80ce365c..c90a66c5 100644
--- a/plugins/prospector.cpp
+++ b/plugins/prospector.cpp
@@ -544,8 +544,9 @@ command_result prospector (color_ostream &con, vector <string> & parameters)
// and we can check visibility more easily here
if (showPlants)
{
- PlantList * plants;
- if (Maps::ReadVegetation(b_x, b_y, z, plants))
+ auto block = Maps::getBlock(b_x,b_y,z);
+ vector<df::plant *> *plants = block ? &block->plants : NULL;
+ if(plants)
{
for (PlantList::const_iterator it = plants->begin(); it != plants->end(); it++)
{