keys.c: Key_ConsoleBindable: special-case key 0, since it essentially means "no key".

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1044 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
svdijk 2014-09-20 23:04:41 +00:00
parent 4ada06645b
commit a9d1910762

View file

@ -1140,7 +1140,7 @@ Key_ConsoleBindable
*/
qboolean Key_ConsoleBindable(int key)
{
if (key < 0 || key > 255)
if (key < 1 || key > 255)
return false;
return ((key_dest == key_console || (key_dest == key_game && con_forcedup)) && !consolekeys[key]);