]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
"" binds are removed binds (fix behaviour in conjunction with bindmaps not skipping...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 26 Sep 2007 17:16:08 +0000 (17:16 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 26 Sep 2007 17:16:08 +0000 (17:16 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7592 d7cf8633-e32d-0410-b094-e92efae38249

keys.c

diff --git a/keys.c b/keys.c
index 02a1a0d9d31f04d26db550e056dc031daff4900f..9f7bf711760345e55ec7ba648d196ebe337c3270 100644 (file)
--- a/keys.c
+++ b/keys.c
@@ -621,6 +621,8 @@ Key_SetBinding (int keynum, int bindmap, const char *binding)
                Z_Free (keybindings[bindmap][keynum]);
                keybindings[bindmap][keynum] = NULL;
        }
+       if(!binding[0]) // make "" binds be removed --blub
+               return;
 // allocate memory for new binding
        l = strlen (binding);
        newbinding = (char *)Z_Malloc (l + 1);