From 1c9666f0492f65376e1c7b02456078fad768c190 Mon Sep 17 00:00:00 2001 From: Sander van Dijk Date: Sat, 13 Sep 2014 08:06:04 +0000 Subject: [PATCH] keys.c: Simplify Key_ConsoleBindable. git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1028 af15c1b1-3010-417e-b628-4374ebc0bcbd --- Quake/keys.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Quake/keys.c b/Quake/keys.c index d50e13a2..e5cceba4 100644 --- a/Quake/keys.c +++ b/Quake/keys.c @@ -1124,8 +1124,5 @@ Key_ConsoleBindable */ qboolean Key_ConsoleBindable(int key) { - if ((key_dest == key_console && !consolekeys[key]) || - (key_dest == key_game && con_forcedup && !consolekeys[key])) - return true; - return false; + return ((key_dest == key_console || (key_dest == key_game && con_forcedup)) && !consolekeys[key]); }