From: Holger Schemel Date: Sun, 12 Mar 2017 18:23:16 +0000 (+0100) Subject: fixed drawing lines for MM style wall elements in level editor X-Git-Tag: 4.1.0.0~157 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=dc10681f0cac355f8b3a7197e058d9e50471181b;p=rocksndiamonds.git fixed drawing lines for MM style wall elements in level editor --- 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)