foxygit / doom Log in
commit ed2a78707468ea438c9c35c6ff849b3f7c03ae33
Author:     Fabian Greffrath <fabian@greffrath.com>
AuthorDate: Thu Feb 22 13:44:01 2018 +0100
Commit:     Fabian Greffrath <fabian@greffrath.com>
CommitDate: Thu Feb 22 13:44:01 2018 +0100

    setup: when disabling "Always Run" reset joybspeed to its default value 2

    Thank you @Zodomaniac for spotting this, fixes #995
---
 src/setup/keyboard.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/setup/keyboard.c b/src/setup/keyboard.c
index 18accf86..8d1741f3 100644
--- a/src/setup/keyboard.c
+++ b/src/setup/keyboard.c
@@ -87,7 +87,7 @@ static void UpdateJoybSpeed(TXT_UNCAST_ARG(widget), TXT_UNCAST_ARG(var))
     }
     else
     {
-        joybspeed = 0;
+        joybspeed = 2;
     }
 }