summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZack Middleton <zturtleman@gmail.com>2013-08-16 15:41:01 -0500
committerTim Angus <tim@ngus.net>2014-06-17 17:43:33 +0100
commit6be2f73daf11da58131ba6dca879aa50c39dc670 (patch)
tree0e721efc7fac53437f6b197814de8b5fcd956e1b /src
parent773cdd867e519700c0a67ab58abe441810d891d0 (diff)
Fix "bind <key>" message for unbound keys
"bind X cmd; unbind X; bind X" now says '"x" is unbound' instead of '"x" = ""'
Diffstat (limited to 'src')
-rw-r--r--src/client/cl_keys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/cl_keys.c b/src/client/cl_keys.c
index b1c81e65..0fbddd23 100644
--- a/src/client/cl_keys.c
+++ b/src/client/cl_keys.c
@@ -944,7 +944,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) );