From 090ba3ef945de0fb47688f31a76868606d51aa4d Mon Sep 17 00:00:00 2001 From: divverent Date: Wed, 26 Sep 2007 17:16:08 +0000 Subject: [PATCH] "" binds are removed binds (fix behaviour in conjunction with bindmaps not skipping over "" binds - note that unbind also binds to "") git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7592 d7cf8633-e32d-0410-b094-e92efae38249 --- keys.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/keys.c b/keys.c index 02a1a0d9..9f7bf711 100644 --- 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); -- 2.39.2