X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Feditor.c;h=dddcaa8e78f1518c46d3f84afffe6ce5d62a0427;hp=1edadc31df46954f0becf7779431c48ad22ef942;hb=45e0606e403584e46cd3c005d488cc274db8e871;hpb=84a7f4ae97c71de8d7542914cd83a4c4e7203cf1 diff --git a/src/editor.c b/src/editor.c index 1edadc31..dddcaa8e 100644 --- a/src/editor.c +++ b/src/editor.c @@ -10297,6 +10297,7 @@ static void SetElementSimpleExt(int x, int y, int dx, int dy, int element, int sx = x - level_xpos; int sy = y - level_ypos; int old_element = Feld[x][y]; + int new_element = element; unsigned int new_bitmask = (getDrawModeHiRes() ? (dx + 1) << (dy * 2) : 0x0f); boolean draw_masked = FALSE; @@ -10325,7 +10326,9 @@ static void SetElementSimpleExt(int x, int y, int dx, int dy, int element, if (IN_ED_FIELD(sx, sy)) { - if (draw_masked) + if (IS_MM_WALL(old_element) && new_element == EL_EMPTY) + DrawSizedWallParts_MM(sx, sy, EL_EMPTY, ed_tilesize, FALSE, new_bitmask); + else if (draw_masked) DrawEditorElementThruMask(sx, sy, element); else DrawEditorElement(sx, sy, element);