filtertext tweak

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6521 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2011-06-08 12:03:47 +00:00
parent 4e063d00c2
commit c76d5a8106
+3 -2
View File
@@ -200,9 +200,10 @@ void filtertext(char *dst, const char *src, int whitespace, int len)
for(int c = *src; c; c = *++src)
{
c &= 0x7F; // 7-bit ascii
switch(c)
if(c == '\f')
{
case '\f': ++src; continue;
if(!*++src) break;
continue;
}
if(isspace(c) ? whitespace && (whitespace>1 || c == ' '): isprint(c))
{