From cc4bbadfa203ea5d41c0a7b5d8ebccd2f20ce963 Mon Sep 17 00:00:00 2001 From: Pavol Marko Date: Fri, 29 Oct 2004 13:11:12 +0000 Subject: [PATCH] Added special cases for %% and % at end of phrase for formatting of phrases defined in language definition files. --- amxmodx/CLang.cpp | 103 +++++++++++++++++++++++++--------------------- 1 file changed, 56 insertions(+), 47 deletions(-) diff --git a/amxmodx/CLang.cpp b/amxmodx/CLang.cpp index be7d7036..6f166150 100755 --- a/amxmodx/CLang.cpp +++ b/amxmodx/CLang.cpp @@ -584,55 +584,64 @@ char * CLangMngr::FormatAmxString(AMX *amx, cell *params, int parm, int &len) if (*def == '%') { ++def; - static char format[32]; - format[0] = '%'; - char *ptr = format+1; - while (ptr-format