extended serverinfo
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4512 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -159,6 +159,17 @@ void filterservdesc(char *dst, const char *src, int len)
|
||||
*dst = '\0';
|
||||
}
|
||||
|
||||
void cutcolorstring(char *text, int len)
|
||||
{ // limit string length, ignore color codes
|
||||
while(*text)
|
||||
{
|
||||
if(*text == '\f' && text[1]) text++;
|
||||
else len--;
|
||||
if(len < 0) { *text = '\0'; break; }
|
||||
text++;
|
||||
}
|
||||
}
|
||||
|
||||
const char *modefullnames[] =
|
||||
{
|
||||
"demo playback",
|
||||
|
||||
Reference in New Issue
Block a user