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 31d45ab..ee5e492 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();