Fix "bind <key>" message for unbound keys

"bind X cmd; unbind X; bind X" now says '"x" is unbound' instead of '"x" = ""'
This commit is contained in:
Zack Middleton 2013-08-16 15:41:01 -05:00
parent 3d69ae9995
commit d4c6711e51

View file

@ -992,7 +992,7 @@ void Key_Bind_f (void)
if (c == 2)
{
if (keys[b].binding)
if (keys[b].binding && keys[b].binding[0])
Com_Printf ("\"%s\" = \"%s\"\n", Key_KeynumToString(b), keys[b].binding );
else
Com_Printf ("\"%s\" is not bound\n", Key_KeynumToString(b) );