diff options
| author | Alexander Gavrilov | 2012-01-20 14:28:00 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-01-20 14:28:00 +0400 |
| commit | cc510a2c4b9887b885c939419bf67147ee997ac6 (patch) | |
| tree | c36fa4c4adbf6cd745143b4cf1ca7d203edc4c4f /plugins/prospector.cpp | |
| parent | d35d070ff312e28abedd5fee003db01ef0454b59 (diff) | |
| download | dfhack-cc510a2c4b9887b885c939419bf67147ee997ac6.tar.gz dfhack-cc510a2c4b9887b885c939419bf67147ee997ac6.tar.bz2 dfhack-cc510a2c4b9887b885c939419bf67147ee997ac6.tar.xz | |
Replace DFCoord with df::coord and df::coord2d.
Diffstat (limited to 'plugins/prospector.cpp')
| -rw-r--r-- | plugins/prospector.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/prospector.cpp b/plugins/prospector.cpp index a81e5986..334d4fff 100644 --- a/plugins/prospector.cpp +++ b/plugins/prospector.cpp @@ -270,7 +270,7 @@ DFhackCExport command_result prospector (DFHack::Core * c, vector <string> & par for(uint32_t b_x = 0; b_x < x_max; b_x++) { // Get the map block - DFHack::DFCoord blockCoord(b_x, b_y); + df::coord2d blockCoord(b_x, b_y); MapExtras::Block *b = map.BlockAt(DFHack::DFCoord(b_x, b_y, z)); if (!b || !b->valid) { @@ -294,7 +294,7 @@ DFhackCExport command_result prospector (DFHack::Core * c, vector <string> & par { for(uint32_t x = 0; x < 16; x++) { - DFHack::DFCoord coord(x, y); + df::coord2d coord(x, y); df::tile_designation des = b->DesignationAt(coord); df::tile_occupancy occ = b->OccupancyAt(coord); @@ -398,7 +398,7 @@ DFhackCExport command_result prospector (DFHack::Core * c, vector <string> & par for (PlantList::const_iterator it = plants->begin(); it != plants->end(); it++) { const DFHack::df_plant & plant = *(*it); - DFHack::DFCoord loc(plant.x, plant.y); + df::coord2d loc(plant.x, plant.y); loc = loc % 16; if (showHidden || !b->DesignationAt(loc).bits.hidden) { |
