X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Ftools.c;h=3f9fa56f8ef683be363200ec522c5cfec6439ba2;hp=2ff2a6e3a7450e00293d90a81ee25308167fa84a;hb=110b7169f469de55651785e007c822f9e6f75c7e;hpb=05f79aac9452f5666ee6dc712637adc1d9ae6b7a diff --git a/src/tools.c b/src/tools.c index 2ff2a6e3..3f9fa56f 100644 --- a/src/tools.c +++ b/src/tools.c @@ -2274,7 +2274,9 @@ static void DrawLevelFieldCrumbledExt(int x, int y, int graphic, int frame) !IN_SCR_FIELD(sxx, syy)) continue; - if (Feld[xx][yy] == EL_ELEMENT_SNAPPING) + // do not crumble fields that are being digged or snapped + if (Feld[xx][yy] == EL_EMPTY || + Feld[xx][yy] == EL_ELEMENT_SNAPPING) continue; element = TILE_GFX_ELEMENT(xx, yy);