Skip to content

Commit bd7f2c5

Browse files
StrixGqaisjp
authored andcommitted
Allow newlines and tabs for chat/debug/console messages sent from server (#1022)
1 parent e0bdbc5 commit bd7f2c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Client/mods/deathmatch/logic/Utils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ unsigned int StripControlCodes(char* szText, unsigned char cReplace)
8282
char* szTemp = szText;
8383
while (*szTemp != 0)
8484
{
85-
if (IsControlCode(*szTemp))
85+
if (IsControlCode(*szTemp) && *szTemp != '\n' && *szTemp != '\t')
8686
{
8787
*szTemp = cReplace;
8888
++uiReplaced;
@@ -652,4 +652,4 @@ CVector ConvertEulerRotationOrder(const CVector& a_vRotation, eEulerRotationOrde
652652
{
653653
return a_vRotation;
654654
}
655-
}
655+
}

0 commit comments

Comments
 (0)