From e4b3c468f2f09c904a551310ae6de10a5f31c465 Mon Sep 17 00:00:00 2001 From: oy Date: Wed, 13 Oct 2010 01:19:22 +0200 Subject: don't show voting hud when playing a demo and added missing localisations. Closes #88 --- src/game/client/components/hud.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/client/components/hud.cpp b/src/game/client/components/hud.cpp index b9f20231..662a7124 100644 --- a/src/game/client/components/hud.cpp +++ b/src/game/client/components/hud.cpp @@ -201,7 +201,7 @@ void CHud::RenderTeambalanceWarning() void CHud::RenderVoting() { - if(!m_pClient->m_pVoting->IsVoting()) + if(!m_pClient->m_pVoting->IsVoting() || Client()->State() == IClient::STATE_DEMOPLAYBACK) return; Graphics()->TextureSet(-1); @@ -229,11 +229,11 @@ void CHud::RenderVoting() const char *pYesKey = m_pClient->m_pBinds->GetKey("vote yes"); const char *pNoKey = m_pClient->m_pBinds->GetKey("vote no"); - str_format(Buf, sizeof(Buf), "%s - Vote Yes", pYesKey); + str_format(Buf, sizeof(Buf), "%s - %s", pYesKey, Localize("Vote Yes")); Base.y += Base.h+1; UI()->DoLabel(&Base, Buf, 6.0f, -1); - str_format(Buf, sizeof(Buf), "Vote No - %s", pNoKey); + str_format(Buf, sizeof(Buf), "%s - %s", Localize("Vote No"), pNoKey); UI()->DoLabel(&Base, Buf, 6.0f, 1); } -- cgit 1.4.1