mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
hide broadcast when motd is active. Closes #420
This commit is contained in:
parent
813f0797d8
commit
99c6b87c1a
|
@ -8,6 +8,7 @@
|
|||
|
||||
#include <game/client/gameclient.h>
|
||||
|
||||
#include <game/client/components/motd.h>
|
||||
#include <game/client/components/scoreboard.h>
|
||||
|
||||
#include "broadcast.h"
|
||||
|
@ -19,7 +20,7 @@ void CBroadcast::OnReset()
|
|||
|
||||
void CBroadcast::OnRender()
|
||||
{
|
||||
if(m_pClient->m_pScoreboard->Active())
|
||||
if(m_pClient->m_pScoreboard->Active() || m_pClient->m_pMotd->IsActive())
|
||||
return;
|
||||
|
||||
Graphics()->MapScreen(0, 0, 300*Graphics()->ScreenAspect(), 300);
|
||||
|
|
Loading…
Reference in a new issue