projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed line style drawing with empty space over MM style walls in editor
[rocksndiamonds.git]
/
src
/
editor.c
diff --git
a/src/editor.c
b/src/editor.c
index 1edadc31df46954f0becf7779431c48ad22ef942..dddcaa8e78f1518c46d3f84afffe6ce5d62a0427 100644
(file)
--- 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 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;
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 (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);
DrawEditorElementThruMask(sx, sy, element);
else
DrawEditorElement(sx, sy, element);