]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix hud_showbinds_limit, it allowed to display only 1 bind
authorterencehill <piuntn@gmail.com>
Sat, 15 Dec 2012 16:13:43 +0000 (17:13 +0100)
committerterencehill <piuntn@gmail.com>
Sat, 15 Dec 2012 16:13:43 +0000 (17:13 +0100)
qcsrc/client/Main.qc

index 835d2855ed78a866c8e0e15a806b63b6ff6b9766..ca402e4f749c3571d9d88d390d5fdb54e3a10e5a 100644 (file)
@@ -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;
                        }
 
                }