Skip to content

Commit 96ac6c3

Browse files
committed
autodig doesn't care if the tile is hidden
1 parent ca24f0a commit 96ac6c3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

plugins/dig.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,7 @@ static void propagate_if_material_match(color_ostream& out, MapExtras::MapCache
319319
int16_t mat, bool warm, bool damp, const df::coord & pos)
320320
{
321321
auto block = Maps::getTileBlock(pos);
322-
auto des = Maps::getTileDesignation(pos);
323-
if (!block || !des || !des->bits.hidden)
322+
if (!block)
324323
return;
325324

326325
INFO(log,out).print("testing adjacent tile at (%d,%d,%d), mat:%d",
@@ -329,8 +328,9 @@ static void propagate_if_material_match(color_ostream& out, MapExtras::MapCache
329328
if (mat != mc.veinMaterialAt(pos))
330329
return;
331330

331+
auto des = Maps::getTileDesignation(pos);
332332
auto occ = Maps::getTileOccupancy(pos);
333-
if (!occ)
333+
if (!des || !occ)
334334
return;
335335

336336
des->bits.dig = df::tile_dig_designation::Default;

0 commit comments

Comments
 (0)