]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - keys.c
make STRIP a specifyable option in the Makefile
[xonotic/darkplaces.git] / keys.c
diff --git a/keys.c b/keys.c
index 6e61c43895b961fef58c6e31435d040ccc79e919..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);
@@ -880,6 +882,9 @@ Key_Event (int key, char ascii, qboolean down)
        if (!bind)
                bind = keybindings[key_bmap2][key];
 
+       if (developer.integer >= 1000)
+               Con_Printf("Key_Event(%i, '%c', %s) keydown %i bind \"%s\"\n", key, ascii, down ? "down" : "up", keydown[key], bind ? bind : "");
+
        if(key_dest == key_game)
        {
                q = CL_VM_InputEvent(!down, key);