From: Holger Schemel Date: Sun, 13 Aug 2023 10:41:15 +0000 (+0200) Subject: fixed bug with checking for mouse events used by custom elements X-Git-Tag: 4.3.7.0~39 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=c0f95d8de44a0a46ffe295beba37937c6f5df0c2;p=rocksndiamonds.git fixed bug with checking for mouse events used by custom elements --- diff --git a/src/game.c b/src/game.c index 2372aac5..c3b2ef7e 100644 --- a/src/game.c +++ b/src/game.c @@ -3505,10 +3505,10 @@ static void InitGameEngine(void) { int element = EL_CUSTOM_START + i; - if (HAS_CHANGE_EVENT(element, CE_CLICKED_BY_MOUSE) || - HAS_CHANGE_EVENT(element, CE_PRESSED_BY_MOUSE) || - HAS_CHANGE_EVENT(element, CE_MOUSE_CLICKED_ON_X) || - HAS_CHANGE_EVENT(element, CE_MOUSE_PRESSED_ON_X)) + if (HAS_ANY_CHANGE_EVENT(element, CE_CLICKED_BY_MOUSE) || + HAS_ANY_CHANGE_EVENT(element, CE_PRESSED_BY_MOUSE) || + HAS_ANY_CHANGE_EVENT(element, CE_MOUSE_CLICKED_ON_X) || + HAS_ANY_CHANGE_EVENT(element, CE_MOUSE_PRESSED_ON_X)) game.use_mouse_actions = TRUE; } }