From: terencehill Date: Sat, 15 Dec 2012 16:13:43 +0000 (+0100) Subject: Fix hud_showbinds_limit, it allowed to display only 1 bind X-Git-Tag: xonotic-v0.7.0~113^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=dffb2ef4d2cee9a7e628c34f586d04c0beb23b67;p=xonotic%2Fxonotic-data.pk3dir.git Fix hud_showbinds_limit, it allowed to display only 1 bind --- diff --git a/qcsrc/client/Main.qc b/qcsrc/client/Main.qc index 835d2855e..ca402e4f7 100644 --- a/qcsrc/client/Main.qc +++ b/qcsrc/client/Main.qc @@ -1241,7 +1241,8 @@ string getcommandkey(string text, string command) keys = strcat(keys, ", ", keynumtostring(k)); ++l; - if (autocvar_hud_showbinds_limit > 0 && autocvar_hud_showbinds_limit >= l) break; + if (autocvar_hud_showbinds_limit > 0 && autocvar_hud_showbinds_limit <= l) + break; } }