diff --git a/src/client/util.qc b/src/client/util.qc index 393d30f8..aad7a818 100644 --- a/src/client/util.qc +++ b/src/client/util.qc @@ -55,19 +55,15 @@ Util_GetKeyString string Util_GetKeyString(string strBind) { - float flBindKey = tokenize(findkeysforcommand(strBind)); + float flBindKey = tokenize(findkeysforcommandex(strBind, 0)); string strBindTx = ""; - float j, k; - + float j; + for (j = 0; j < flBindKey; ++j) { - k = stof(argv(j)); + if (strBindTx != "") + strBindTx = strcat(strBindTx, ", "); - if (k != -1) { - if (strBindTx != "") - strBindTx = strcat(strBindTx, ", "); - - strBindTx = strcat(strBindTx, keynumtostring(k)); - } + strBindTx = strcat(strBindTx, argv(j)); } if (!strBindTx)