From f6b37dbca20569848a0e58aaf23471e98d0b2873 Mon Sep 17 00:00:00 2001 From: Laserlicht <13953785+Laserlicht@users.noreply.github.com> Date: Mon, 2 Dec 2024 22:36:49 +0100 Subject: [PATCH] revert text fix --- client/windows/CMessage.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/client/windows/CMessage.cpp b/client/windows/CMessage.cpp index e5b208641..ed7f09fe3 100644 --- a/client/windows/CMessage.cpp +++ b/client/windows/CMessage.cpp @@ -117,14 +117,7 @@ std::vector CMessage::breakText(std::string text, size_t maxLineWid color = ""; } else - { - std::string character = ""; - character.append(text.data() + currPos, symbolSize); - if(fontPtr->getStringWidth(printableString + character) > maxLineWidth) - break; - printableString += character; - } - + printableString.append(text.data() + currPos, symbolSize); currPos += symbolSize; }