diff options
| author | Alexander Gavrilov | 2012-04-19 19:17:07 +0400 |
|---|---|---|
| committer | Kelly Martin | 2012-04-26 12:21:59 -0500 |
| commit | b4a8bcd8d02f0277d21e1da2c26201a48ccd559b (patch) | |
| tree | b95bc9a14bef44a65520aff99872e4ff00628a35 /plugins/dig.cpp | |
| parent | 5f5152f4498722d61e7c9c7f207ef3b5dfbda84c (diff) | |
| download | dfhack-b4a8bcd8d02f0277d21e1da2c26201a48ccd559b.tar.gz dfhack-b4a8bcd8d02f0277d21e1da2c26201a48ccd559b.tar.bz2 dfhack-b4a8bcd8d02f0277d21e1da2c26201a48ccd559b.tar.xz | |
Refactor MapCache: make it parse everything that is known re tiles & mats.
Conflicts:
library/xml
Diffstat (limited to 'plugins/dig.cpp')
| -rw-r--r-- | plugins/dig.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/dig.cpp b/plugins/dig.cpp index 64161a3a..21c19910 100644 --- a/plugins/dig.cpp +++ b/plugins/dig.cpp @@ -1196,7 +1196,7 @@ command_result digl (color_ostream &out, vector <string> & parameters) df::tile_designation des = MCache->designationAt(xy); df::tiletype tt = MCache->tiletypeAt(xy); int16_t veinmat = MCache->veinMaterialAt(xy); - int16_t basemat = MCache->baseMaterialAt(xy); + int16_t basemat = MCache->layerMaterialAt(xy); if( veinmat != -1 ) { con.printerr("This is a vein. Use vdig instead!\n"); @@ -1215,7 +1215,7 @@ command_result digl (color_ostream &out, vector <string> & parameters) if (MCache->tagAt(current)) continue; int16_t vmat2 = MCache->veinMaterialAt(current); - int16_t bmat2 = MCache->baseMaterialAt(current); + int16_t bmat2 = MCache->layerMaterialAt(current); tt = MCache->tiletypeAt(current); if(!DFHack::isWallTerrain(tt)) @@ -1282,7 +1282,7 @@ command_result digl (color_ostream &out, vector <string> & parameters) //below = 1; des_minus = MCache->designationAt(current-1); vmat_minus = MCache->veinMaterialAt(current-1); - bmat_minus = MCache->baseMaterialAt(current-1); + bmat_minus = MCache->layerMaterialAt(current-1); tt_minus = MCache->tiletypeAt(current-1); if ( tileMaterial(tt_minus)==tiletype_material::STONE || tileMaterial(tt_minus)==tiletype_material::SOIL) @@ -1293,7 +1293,7 @@ command_result digl (color_ostream &out, vector <string> & parameters) //above = 1; des_plus = MCache->designationAt(current+1); vmat_plus = MCache->veinMaterialAt(current+1); - bmat_plus = MCache->baseMaterialAt(current+1); + bmat_plus = MCache->layerMaterialAt(current+1); tt_plus = MCache->tiletypeAt(current+1); if ( tileMaterial(tt_plus)==tiletype_material::STONE || tileMaterial(tt_plus)==tiletype_material::SOIL) |
