mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48: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
|
// motd
|
||||||
int64 m_ServerMotdTime;
|
int64 m_ServerMotdTime;
|
||||||
char m_aServerMotd[1024];
|
char m_aServerMotd[1024];
|
||||||
void Clear();
|
|
||||||
public:
|
public:
|
||||||
|
void Clear();
|
||||||
bool IsActive();
|
bool IsActive();
|
||||||
const char *GetMotd() const { return m_aServerMotd; }
|
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())
|
else if(m_SkipPlayerStatsReset && m_pClient->m_Snap.m_pGameData && m_pClient->m_Snap.m_pGameData->m_GameStartTick != Client()->GameTick())
|
||||||
m_SkipPlayerStatsReset = false;
|
m_SkipPlayerStatsReset = false;
|
||||||
|
|
||||||
|
// close the motd if we actively wanna look on the scoreboard
|
||||||
|
if(m_Active)
|
||||||
|
m_pClient->m_pMotd->Clear();
|
||||||
|
|
||||||
if(!Active())
|
if(!Active())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue