Mantis: 1087

o Fixed the newline issues in for SayText messages

git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@303 67975925-1194-0748-b3d5-c16f83f1a3a1
This commit is contained in:
puzl 2005-07-26 02:22:13 +00:00
parent 3c4b144cd9
commit edc0e08fee

View file

@ -247,7 +247,9 @@ void CHudSayText :: SayTextPrint( const char *pszBuf, int iBufSize, int clientIn
}
}
strncpy( g_szLineBuffer[i], pszBuf, min(iBufSize -1, MAX_CHARS_PER_LINE-1) );
// puzl: 0001087
// don't strip last character ( often resulted in no carriage returns in the log )
strncpy( g_szLineBuffer[i], pszBuf, min(iBufSize, MAX_CHARS_PER_LINE-1) );
// make sure the text fits in one line
EnsureTextFitsInOneLineAndWrapIfHaveTo( i );