projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a42b95
)
fixed drawing lines for MM style wall elements in level editor
author
Holger Schemel
<info@artsoft.org>
Sun, 12 Mar 2017 18:23:16 +0000
(19:23 +0100)
committer
Holger Schemel
<info@artsoft.org>
Fri, 23 Mar 2018 22:21:11 +0000
(23:21 +0100)
src/editor.c
patch
|
blob
|
history
diff --git
a/src/editor.c
b/src/editor.c
index 16d7d61c73bda9248731d3c2e83040d6a6dc8b72..39f479822b30a51bd5d81619db7e192caf7f46f2 100644
(file)
--- a/
src/editor.c
+++ b/
src/editor.c
@@
-11928,13
+11928,13
@@
static void HandleDrawingAreas(struct GadgetInfo *gi)
/* also correct MM wall-sized (double) drawing area positions accordingly */
if (sx2 / 2 < sx || sx2 / 2 > sx)
{
- sx2 = sx * 2;
dx = (sx2 / 2 < sx ? 0 : 1);
+ sx2 = sx * 2 + dx;
}
if (sy2 / 2 < sy || sy2 / 2 > sy)
{
- sy2 = sy * 2;
dy = (sy2 / 2 < sy ? 0 : 1);
+ sy2 = sy * 2 + dy;
}
if (button_release_event)