added always clearing player action when waiting for events to continue
authorHolger Schemel <info@artsoft.org>
Sun, 4 Oct 2020 23:07:05 +0000 (01:07 +0200)
committerHolger Schemel <info@artsoft.org>
Sun, 4 Oct 2020 23:07:05 +0000 (01:07 +0200)
src/tools.c

index 3bc4a77..a6a08d7 100644 (file)
@@ -4208,6 +4208,7 @@ void WaitForEventToContinue(void)
   button_status = MB_RELEASED;
 
   ClearEventQueue();
+  ClearPlayerAction();
 
   while (still_wait)
   {
@@ -4224,10 +4225,6 @@ void WaitForEventToContinue(void)
          still_wait = FALSE;
          break;
 
-       case EVENT_KEYRELEASE:
-         ClearPlayerAction();
-         break;
-
        default:
          HandleOtherEvents(&event);
          break;