And don't designate over non-terrain tiles.

develop
Petr Mrázek 2011-08-17 14:29:30 +02:00
parent e1dceda766
commit eeb030dc7e
1 changed files with 4 additions and 0 deletions

@ -415,6 +415,10 @@ DFhackCExport command_result expdig (Core * c, vector <string> & parameters)
if(tt == 0) if(tt == 0)
continue; continue;
t_designation des = mx.designationAt(pos); t_designation des = mx.designationAt(pos);
if(tileMaterial(tt) == CONSTRUCTED && !des.bits.hidden)
continue;
if(!isWallTerrain(tt) && !des.bits.hidden)
continue;
if(cross[y][x]) if(cross[y][x])
{ {
des.bits.dig = designation_default; des.bits.dig = designation_default;