diff --git a/src/engine/client/text.cpp b/src/engine/client/text.cpp index 7616c0164..c2872bd16 100644 --- a/src/engine/client/text.cpp +++ b/src/engine/client/text.cpp @@ -1612,7 +1612,6 @@ public: bool HasCursor = false; const SGlyph *pLastGlyph = nullptr; - bool GotNewLine = false; bool GotNewLineLast = false; int ColorOption = 0; @@ -1902,7 +1901,6 @@ public: { if(!StartNewLine()) break; - GotNewLine = true; GotNewLineLast = true; } else @@ -1998,11 +1996,9 @@ public: // even if no text is drawn the cursor position will be adjusted pCursor->m_X = DrawX; + pCursor->m_Y = DrawY; pCursor->m_LineCount = LineCount; - if(GotNewLine) - pCursor->m_Y = DrawY; - TextContainer.m_BoundingBox = pCursor->BoundingBox(); }