mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
close the motd if we actively wanna look on the scoreboard. closes #1920
This commit is contained in:
parent
8f2f42ee3a
commit
0cc8e8530d
|
@ -9,8 +9,8 @@ class CMotd : public CComponent
|
|||
// motd
|
||||
int64 m_ServerMotdTime;
|
||||
char m_aServerMotd[1024];
|
||||
void Clear();
|
||||
public:
|
||||
void Clear();
|
||||
bool IsActive();
|
||||
const char *GetMotd() const { return m_aServerMotd; }
|
||||
|
||||
|
|
|
@ -637,6 +637,10 @@ void CScoreboard::OnRender()
|
|||
else if(m_SkipPlayerStatsReset && m_pClient->m_Snap.m_pGameData && m_pClient->m_Snap.m_pGameData->m_GameStartTick != Client()->GameTick())
|
||||
m_SkipPlayerStatsReset = false;
|
||||
|
||||
// close the motd if we actively wanna look on the scoreboard
|
||||
if(m_Active)
|
||||
m_pClient->m_pMotd->Clear();
|
||||
|
||||
if(!Active())
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in a new issue