Browse Source

Do not process button held events in character panel

pull/4408/head
staphen 4 years ago committed by Anders Jenbo
parent
commit
aad12e50e7
  1. 2
      Source/controls/game_controls.cpp

2
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);

Loading…
Cancel
Save