From: Holger Schemel Date: Fri, 27 Jan 2017 19:16:15 +0000 (+0100) Subject: fixed bug with double warning when editing CE draw areas when using level template X-Git-Tag: 4.0.0.2~20 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=2ad91a136a32c9ea721e582fa507f675e82d9f19;p=rocksndiamonds.git fixed bug with double warning when editing CE draw areas when using level template --- diff --git a/src/editor.c b/src/editor.c index 25b7af27..b5aa6fb3 100644 --- a/src/editor.c +++ b/src/editor.c @@ -11073,7 +11073,7 @@ static void HandleDrawingAreas(struct GadgetInfo *gi) SetElementButton(lx, ly, new_element, button); } } - else + else if (!button_release_event) { int type_id = gi->custom_type_id; int pos = sx * drawingarea_info[type_id].area_ysize + sy;