From: Holger Schemel Date: Thu, 20 Oct 2022 16:04:41 +0000 (+0200) Subject: removed redundant conditions X-Git-Tag: 4.3.3.0~48 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=75280c548c054ddc49facf3b1528cc3d567de055;p=rocksndiamonds.git removed redundant conditions This issue was found by Cppcheck (static C/C++ code analysis tool). --- diff --git a/src/editor.c b/src/editor.c index 833dce2e..b2bb56b9 100644 --- a/src/editor.c +++ b/src/editor.c @@ -13020,9 +13020,6 @@ static void HandleDrawingAreas(struct GadgetInfo *gi) if (!IS_VALID_BUTTON(button)) return; - if (!button && !button_release_event) - return; - // handle info callback for each invocation of action callback gi->callback_info(gi); @@ -13058,10 +13055,9 @@ static void HandleDrawingAreas(struct GadgetInfo *gi) if (edit_mode == ED_MODE_DRAWING && draw_with_brush && !inside_drawing_area) DeleteBrushFromCursor(); - } - if (!button || button_release_event) break; + } if (draw_with_brush) {