summaryrefslogtreecommitdiff
path: root/plugins/fixveins.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/fixveins.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/fixveins.cpp')
-rw-r--r--plugins/fixveins.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/fixveins.cpp b/plugins/fixveins.cpp
index 474201a8..f02f6167 100644
--- a/plugins/fixveins.cpp
+++ b/plugins/fixveins.cpp
@@ -65,8 +65,7 @@ command_result df_fixveins (color_ostream &out, vector <string> & parameters)
has_mineral[k] |= mineral->tile_bitmask[k];
}
t_feature local, global;
- Maps::GetGlobalFeature(global, block->global_feature);
- Maps::GetLocalFeature(local, df::coord2d(block->map_pos.x / 16, block->map_pos.y / 16), block->local_feature);
+ Maps::ReadFeatures(block, &local, &global);
for (int x = 0; x < 16; x++)
{
for (int y = 0; y < 16; y++)