From ce3a9bf4bbc3cacad2179e61160984d013036c47 Mon Sep 17 00:00:00 2001 From: Nikita Obrekht Date: Thu, 8 Nov 2018 02:11:09 +0200 Subject: [PATCH] Allow newlines and tabs for chat/debug/console messages sent from server --- Client/mods/deathmatch/logic/Utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Client/mods/deathmatch/logic/Utils.cpp b/Client/mods/deathmatch/logic/Utils.cpp index c5511278fbc..c96bfbc986e 100644 --- a/Client/mods/deathmatch/logic/Utils.cpp +++ b/Client/mods/deathmatch/logic/Utils.cpp @@ -82,7 +82,7 @@ unsigned int StripControlCodes(char* szText, unsigned char cReplace) char* szTemp = szText; while (*szTemp != 0) { - if (IsControlCode(*szTemp)) + if (IsControlCode(*szTemp) && *szTemp != '\n' && *szTemp != '\t') { *szTemp = cReplace; ++uiReplaced; @@ -652,4 +652,4 @@ CVector ConvertEulerRotationOrder(const CVector& a_vRotation, eEulerRotationOrde { return a_vRotation; } -} \ No newline at end of file +}