From c76d5a8106acd831e0b0f3931b514737fdd2c1ff Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Wed, 8 Jun 2011 12:03:47 +0000 Subject: [PATCH] filtertext tweak git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6521 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/protocol.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/src/protocol.cpp b/source/src/protocol.cpp index 701759ef..5786441f 100644 --- a/source/src/protocol.cpp +++ b/source/src/protocol.cpp @@ -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)) {