diff options
| author | oy <Tom_Adams@web.de> | 2010-10-13 01:19:22 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2010-10-13 01:19:22 +0200 |
| commit | e4b3c468f2f09c904a551310ae6de10a5f31c465 (patch) | |
| tree | 1dbafee3f89ff3e7933c89e67b5b4597e8e46d59 /src/game/client | |
| parent | cd578a0dc24b3ffbd3afc7cdace9b06e75dd91cd (diff) | |
| download | zcatch-e4b3c468f2f09c904a551310ae6de10a5f31c465.tar.gz zcatch-e4b3c468f2f09c904a551310ae6de10a5f31c465.zip | |
don't show voting hud when playing a demo and added missing localisations. Closes #88
Diffstat (limited to 'src/game/client')
| -rw-r--r-- | src/game/client/components/hud.cpp | 6 |
1 files 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); } |