From f5d0018ba9255b3a53936cfbb3a149f9222d8273 Mon Sep 17 00:00:00 2001 From: sirius Date: Sun, 13 Oct 2019 19:57:24 +0800 Subject: [PATCH] solve the problem that chat message not show after a period of time when rendering --- src/game/client/components/chat.cpp | 2 +- src/game/client/components/chat.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game/client/components/chat.cpp b/src/game/client/components/chat.cpp index 8959dd66e..5619d7b98 100644 --- a/src/game/client/components/chat.cpp +++ b/src/game/client/components/chat.cpp @@ -748,7 +748,7 @@ void CChat::OnPrepareLines() m_PrevScoreBoardShowed = m_pClient->m_pScoreboard->Active(); m_PrevShowChat = m_Show; - int64 Now = time_get(); + int64 Now = time(); float LineWidth = m_pClient->m_pScoreboard->Active() ? 90.0f : 200.0f; float HeightLimit = m_pClient->m_pScoreboard->Active() ? 230.0f : m_Show ? 50.0f : 200.0f; float Begin = x; diff --git a/src/game/client/components/chat.h b/src/game/client/components/chat.h index daf004a00..32b18bba5 100644 --- a/src/game/client/components/chat.h +++ b/src/game/client/components/chat.h @@ -5,6 +5,7 @@ #include #include #include +#include class CChat : public CComponent {