From dc10681f0cac355f8b3a7197e058d9e50471181b Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sun, 12 Mar 2017 19:23:16 +0100 Subject: [PATCH] fixed drawing lines for MM style wall elements in level editor --- src/editor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/editor.c b/src/editor.c index 16d7d61c..39f47982 100644 --- 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) -- 2.34.1