From 323843a0094e6766f46ad8bd9a1a92ab4fd32639 Mon Sep 17 00:00:00 2001 From: TimePath Date: Mon, 15 Dec 2014 17:16:09 +1100 Subject: [PATCH] `unbindall` from menu button instead --- binds-default.cfg | 2 -- qcsrc/menu/xonotic/keybinder.c | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/binds-default.cfg b/binds-default.cfg index 36d4bd6a0..f48842f8c 100644 --- a/binds-default.cfg +++ b/binds-default.cfg @@ -1,5 +1,3 @@ -unbindall - // alias for switching the teamselect menu bind f5 menu_showteamselect diff --git a/qcsrc/menu/xonotic/keybinder.c b/qcsrc/menu/xonotic/keybinder.c index 6fe961871..c312e3826 100644 --- a/qcsrc/menu/xonotic/keybinder.c +++ b/qcsrc/menu/xonotic/keybinder.c @@ -240,6 +240,7 @@ void KeyBinder_Bind_Clear(entity btn, entity me) } void KeyBinder_Bind_Reset_All(entity btn, entity me) { + localcmd("unbindall\n"); localcmd("exec binds-default.cfg\n"); localcmd("-zoom\n"); // to make sure we aren't in togglezoom'd state cvar_set("_hud_showbinds_reload", "1"); -- 2.39.2