Skip to content

Commit

Permalink
close the motd if we actively wanna look on the scoreboard. closes #1920
Browse files Browse the repository at this point in the history
  • Loading branch information
oy committed Dec 24, 2018
1 parent 8f2f42e commit 0cc8e85
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/client/components/motd.h
Original file line number Diff line number Diff line change
Expand Up @@ -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; }

Expand Down
4 changes: 4 additions & 0 deletions src/game/client/components/scoreboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 0cc8e85

Please sign in to comment.