*** empty log message ***

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1146 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2007-06-06 01:27:26 +00:00
parent 93b078c04a
commit ed3b6aaac2
4 changed files with 37 additions and 4 deletions
+17
View File
@@ -74,6 +74,23 @@ void getstring(char *text, ucharbuf &p, int len)
while(*t++);
}
void filtertext(char *dst, const char *src, bool whitespace, int len)
{
for(int c = *src; c; c = *++src)
{
switch(c)
{
case '\f': ++src; continue;
}
if(isspace(c) ? whitespace : isprint(c))
{
*dst++ = c;
if(!--len) break;
}
}
*dst = '\0';
}
const char *modenames[] =
{
"team deathmatch", "coopedit", "deathmatch", "survivor",