mirror of
https://github.com/alliedmodders/sourcemod.git
synced 2025-12-06 18:08:36 +00:00
parent
2ae0d05a23
commit
74e9cdd709
@ -188,6 +188,15 @@ bool AddString(char **buf_p, size_t &maxlen, const char *string, int width, int
|
|||||||
|
|
||||||
width -= size;
|
width -= size;
|
||||||
|
|
||||||
|
if (!(flags & LADJUST))
|
||||||
|
{
|
||||||
|
while ((width-- > 0) && maxlen)
|
||||||
|
{
|
||||||
|
*buf++ = ' ';
|
||||||
|
maxlen--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (g_FormatEscapeDatabase && (flags & NOESCAPE) == 0)
|
if (g_FormatEscapeDatabase && (flags & NOESCAPE) == 0)
|
||||||
{
|
{
|
||||||
char *tempBuffer = NULL;
|
char *tempBuffer = NULL;
|
||||||
@ -226,10 +235,13 @@ bool AddString(char **buf_p, size_t &maxlen, const char *string, int width, int
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
while ((width-- > 0) && maxlen)
|
if (flags & LADJUST)
|
||||||
{
|
{
|
||||||
*buf++ = ' ';
|
while ((width-- > 0) && maxlen)
|
||||||
maxlen--;
|
{
|
||||||
|
*buf++ = ' ';
|
||||||
|
maxlen--;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
*buf_p = buf;
|
*buf_p = buf;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user