fixed bug when snapping envelope (introduced by commit 931d95b5)
authorHolger Schemel <info@artsoft.org>
Thu, 7 Feb 2019 22:40:30 +0000 (23:40 +0100)
committerHolger Schemel <info@artsoft.org>
Sun, 10 Feb 2019 14:44:22 +0000 (15:44 +0100)
src/events.c

index 31d45abff4cc3946e05589270ad869d05765e3d4..ee5e492c93c0d94f786af2d20e3a239a92ae2b82 100644 (file)
@@ -405,7 +405,10 @@ void ClearPlayerAction(void)
   // simulate key release events for still pressed keys
   key_joystick_mapping = 0;
   for (i = 0; i < MAX_PLAYERS; i++)
+  {
     stored_player[i].action = 0;
+    stored_player[i].snap_action = 0;
+  }
 
   ClearJoystickState();
   ClearPlayerMouseAction();