From: Holger Schemel Date: Thu, 7 Feb 2019 22:40:30 +0000 (+0100) Subject: fixed bug when snapping envelope (introduced by commit 931d95b5) X-Git-Tag: 4.1.2.0~25 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=9db7595a83420f029dd52a462d766d4ac585e9c7;hp=a8cbd6caea4467607417ffe93ca70122b6862ff2 fixed bug when snapping envelope (introduced by commit 931d95b5) --- diff --git a/src/events.c b/src/events.c index 31d45abf..ee5e492c 100644 --- a/src/events.c +++ b/src/events.c @@ -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();