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 3bc4a77fef5b9cd1d2f569ab1e059b42fd73a32d..a6a08d72aaaccce1b8dcc035c76d287af54d81d8 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;