summaryrefslogtreecommitdiffstats
path: root/games/jfsw/fixsegfault.diff
diff options
context:
space:
mode:
author B. Watson2018-07-11 10:10:42 +0200
committer Willy Sudiarto Raharjo2018-07-14 01:56:00 +0200
commit6c6fe34a5bdebae8cd785e416716146508fccf79 (patch)
tree222fc6502e228ba1f46d6849b8f3cff66afbdf10 /games/jfsw/fixsegfault.diff
parent86ec40d6d3f58187bf9cf4330a0a0dcefb22001d (diff)
downloadslackbuilds-6c6fe34a5bdebae8cd785e416716146508fccf79.tar.gz
games/jfsw: Updated for version 20180424_8fc2d54.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'games/jfsw/fixsegfault.diff')
-rw-r--r--games/jfsw/fixsegfault.diff12
1 files changed, 12 insertions, 0 deletions
diff --git a/games/jfsw/fixsegfault.diff b/games/jfsw/fixsegfault.diff
new file mode 100644
index 0000000000..9290ffef96
--- /dev/null
+++ b/games/jfsw/fixsegfault.diff
@@ -0,0 +1,12 @@
+diff -Naur jfsw.orig/src/menus.c jfsw/src/menus.c
+--- jfsw.orig/src/menus.c 2017-03-24 23:22:17.000000000 -0400
++++ jfsw/src/menus.c 2018-07-10 22:51:52.032019948 -0400
+@@ -2540,7 +2540,7 @@
+ CONTROL_ClearUserInput(&mnu_input);
+ CONTROL_GetUserInput(&mnu_input);
+
+- if (KB_KeyPressed(sc_Y) || KB_KeyPressed(sc_Enter) || mnu_input.button0)
++ if (KB_KeyPressed(sc_Y) || KB_KeyPressed(sc_Enter))
+ return (TRUE);
+ else
+ return (FALSE);