mirror of
https://github.com/unknownworlds/NS.git
synced 2024-11-26 06:20:58 +00:00
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:
parent
3c4b144cd9
commit
edc0e08fee
1 changed files with 3 additions and 1 deletions
|
@ -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
|
// make sure the text fits in one line
|
||||||
EnsureTextFitsInOneLineAndWrapIfHaveTo( i );
|
EnsureTextFitsInOneLineAndWrapIfHaveTo( i );
|
||||||
|
|
Loading…
Reference in a new issue