check for tile material == MINERAL in digtype (#1243)

develop
Kelly Kinkade 2018-03-20 01:44:10 -05:00
parent 0e7ab27850
commit b8de7d4cf8
1 changed files with 2 additions and 0 deletions

@ -1522,6 +1522,8 @@ command_result digtype (color_ostream &out, vector <string> & parameters)
tt = mCache->tiletypeAt(current);
if (!DFHack::isWallTerrain(tt))
continue;
if (tileMaterial(tt) != df::enums::tiletype_material::MINERAL)
continue;
//designate it for digging
df::tile_designation des = mCache->designationAt(current);