solve the problem that chat message not show after a period of time when rendering

This commit is contained in:
sirius 2019-10-13 19:57:24 +08:00
parent d89ae6c18c
commit f5d0018ba9
2 changed files with 2 additions and 1 deletions

View file

@ -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;

View file

@ -5,6 +5,7 @@
#include <engine/shared/ringbuffer.h>
#include <game/client/component.h>
#include <game/client/lineinput.h>
#include <engine/shared/demo.h>
class CChat : public CComponent
{