From: Rudolf Polzer Date: Tue, 21 Dec 2010 06:13:05 +0000 (+0100) Subject: always do -zoom when changing a keybind (so if togglezoom is bound away, we cannot... X-Git-Tag: xonotic-v0.1.0preview~3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=36c5d4c7513a8b47aa7e5efacb6814917b6c0b33;p=xonotic%2Fxonotic-data.pk3dir.git always do -zoom when changing a keybind (so if togglezoom is bound away, we cannot get stuck in zoomed mode) --- diff --git a/qcsrc/menu/xonotic/keybinder.c b/qcsrc/menu/xonotic/keybinder.c index 3117c65e4..87273b24c 100644 --- a/qcsrc/menu/xonotic/keybinder.c +++ b/qcsrc/menu/xonotic/keybinder.c @@ -137,6 +137,7 @@ void XonoticKeyBinder_keyGrabbed(entity me, float key, float ascii) } } localcmd("\nbind \"", keynumtostring(key), "\" \"", func, "\"\n"); + localcmd("-zoom\n"); // to make sure we aren't in togglezoom'd state } void XonoticKeyBinder_editUserbind(entity me, string theName, string theCommandPress, string theCommandRelease) { @@ -197,7 +198,7 @@ void KeyBinder_Bind_Clear(entity btn, entity me) //localcmd("\nunbind \"", keynumtostring(k), "\"\n"); localcmd("\nbind \"", keynumtostring(k), "\" \"", KEY_NOT_BOUND_CMD, "\"\n"); } - + localcmd("-zoom\n"); // to make sure we aren't in togglezoom'd state } void XonoticKeyBinder_clickListBoxItem(entity me, float i, vector where) {