mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 18:18:18 +00:00
solve the problem that chat message not show after a period of time when rendering
This commit is contained in:
parent
d89ae6c18c
commit
f5d0018ba9
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue