about summary refs log tree commit diff
path: root/src/game/client/components/scoreboard.cpp
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2010-08-18 03:57:35 +0200
committeroy <Tom_Adams@web.de>2010-08-18 03:57:35 +0200
commit538d968349faaec96ca010cc3fa0efdc13a05aed (patch)
treebf6d1d791aa580e8a05df553a58a6efd26cd771e /src/game/client/components/scoreboard.cpp
parent0f72fd19ef9f03b335c9bc4e4dae764079e1f30d (diff)
downloadzcatch-538d968349faaec96ca010cc3fa0efdc13a05aed.tar.gz
zcatch-538d968349faaec96ca010cc3fa0efdc13a05aed.zip
fixed that scoreboard overlaps the chat. Closes #14
Diffstat (limited to 'src/game/client/components/scoreboard.cpp')
-rw-r--r--src/game/client/components/scoreboard.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/client/components/scoreboard.cpp b/src/game/client/components/scoreboard.cpp
index 27e577e8..5f9aeea7 100644
--- a/src/game/client/components/scoreboard.cpp
+++ b/src/game/client/components/scoreboard.cpp
@@ -322,3 +322,8 @@ void CScoreboard::OnRender()
 	RenderGoals(Width/2-w/2, 150+750+25, w);
 	RenderSpectators(Width/2-w/2, 150+750+25+50+25, w);
 }
+
+bool CScoreboard::Active()
+{
+	return m_Active | (m_pClient->m_Snap.m_pGameobj && m_pClient->m_Snap.m_pGameobj->m_GameOver);
+}