Maintenance: [forced, user-approved] Family D4: ConvertChat (fn_12605, 0x91B800, kept in UITextViewerLinks.cpp) is a UINewChatWnd met

Batch #10205 by ragnarok-clanker: forced by an admin (1 lower score(s), 12 changed function(s)); checked with 29 compiled unit(s), including every includer of Source/UI/Chat/UINewChatWnd.h, Source/UI/Text/UITextViewer.h.
This commit is contained in:
ragnarok-clanker 2026-11-02 22:16:40 +00:00
commit d95073881e
9 changed files with 40 additions and 39 deletions

View file

@ -1,3 +1,4 @@
#include "UI/Chat/UINewChatWnd.h"
#include "Client/Application/Launcher.h"
#include "Client/Input/InputCharset.h"
#include "UI/Window/WindowDialogs.h"
@ -1536,8 +1537,8 @@ std::string UIWindow::FitDisplayText(int width, const char* text, int family, in
display = DisplayTextTag(std::move(display), "<ITEM>", "</ITEM>");
display = RemoveTextLinkInfo(std::move(display));
if (this->m_context->chatConverter) {
display = this->m_context->chatConverter->ConvertChat(std::move(display));
if (g_windowMgr.window_01C8) {
display = static_cast<UINewChatWnd*>(g_windowMgr.window_01C8)->ConvertChat(std::move(display));
}
std::string navigation;
@ -1606,8 +1607,8 @@ std::string UIWindow::FitVerticalDisplayText(int height, const char* text, int f
display = DisplayTextTag(std::move(display), "<ITEM>", "</ITEM>");
display = RemoveTextLinkInfo(std::move(display));
if (this->m_context->chatConverter) {
display = this->m_context->chatConverter->ConvertChat(std::move(display));
if (g_windowMgr.window_01C8) {
display = static_cast<UINewChatWnd*>(g_windowMgr.window_01C8)->ConvertChat(std::move(display));
}
std::string navigation;