about summary refs log tree commit diff
path: root/src/game/client/components/broadcast.cpp
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2011-01-12 01:18:07 +0100
committeroy <Tom_Adams@web.de>2011-01-12 01:18:07 +0100
commit3f4556a861168419a646a5f3353529c34aec1409 (patch)
treeb520395827d3d7c9fde8d19b2e314437f711cb8b /src/game/client/components/broadcast.cpp
parent1f552379199e4811c073f2bc14d677ef3706f73d (diff)
downloadzcatch-3f4556a861168419a646a5f3353529c34aec1409.tar.gz
zcatch-3f4556a861168419a646a5f3353529c34aec1409.zip
hide the broadcast when the scoreboard is active. Closes #408
Diffstat (limited to 'src/game/client/components/broadcast.cpp')
-rw-r--r--src/game/client/components/broadcast.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/client/components/broadcast.cpp b/src/game/client/components/broadcast.cpp
index c262fff0..37876562 100644
--- a/src/game/client/components/broadcast.cpp
+++ b/src/game/client/components/broadcast.cpp
@@ -8,6 +8,8 @@
 
 #include <game/client/gameclient.h>
 
+#include <game/client/components/scoreboard.h>
+
 #include "broadcast.h"
 	
 void CBroadcast::OnReset()
@@ -17,6 +19,9 @@ void CBroadcast::OnReset()
 
 void CBroadcast::OnRender()
 {
+	if(m_pClient->m_pScoreboard->Active())
+		return;
+
 	Graphics()->MapScreen(0, 0, 300*Graphics()->ScreenAspect(), 300);
 		
 	if(time_get() < m_BroadcastTime)