From aad12e50e7d092ffd18ca338df77e93879057fd3 Mon Sep 17 00:00:00 2001 From: staphen Date: Mon, 11 Apr 2022 02:38:15 -0400 Subject: [PATCH] Do not process button held events in character panel --- Source/controls/game_controls.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/controls/game_controls.cpp b/Source/controls/game_controls.cpp index 1496a28ae..e4a2a5a5e 100644 --- a/Source/controls/game_controls.cpp +++ b/Source/controls/game_controls.cpp @@ -198,7 +198,7 @@ bool GetGameAction(const SDL_Event &event, ControllerButtonEvent ctrlEvent, Game } if (ctrlEvent.state == ControllerButtonState_HELD) { - if (CanControlHero() && !select_modifier_active && !start_modifier_active) { + if (CanControlHero() && !chrflag && !select_modifier_active && !start_modifier_active) { switch (ctrlEvent.button) { case ControllerButton_ATTACK: *action = GameAction(GameActionType_PRIMARY_ACTION);