diff --git a/src/game/client/components/hud.cpp b/src/game/client/components/hud.cpp index 7441be2ab..9d46d9966 100644 --- a/src/game/client/components/hud.cpp +++ b/src/game/client/components/hud.cpp @@ -10,6 +10,7 @@ #include #include #include +#include #include "controls.h" #include "camera.h" @@ -324,7 +325,7 @@ void CHud::RenderTeambalanceWarning() void CHud::RenderVoting() { - if(!m_pClient->m_pVoting->IsVoting() || Client()->State() == IClient::STATE_DEMOPLAYBACK) + if((!m_pClient->m_pScoreboard->Active() && m_pClient->m_pVoting->TakenChoice()) || !m_pClient->m_pVoting->IsVoting() || Client()->State() == IClient::STATE_DEMOPLAYBACK) return; Graphics()->TextureSet(-1); diff --git a/src/game/client/components/voting.cpp b/src/game/client/components/voting.cpp index 675d67705..aae1af0bd 100644 --- a/src/game/client/components/voting.cpp +++ b/src/game/client/components/voting.cpp @@ -113,6 +113,7 @@ void CVoting::AddvoteOption(const char *pDescription, const char *pCommand) void CVoting::Vote(int v) { + m_Voted = v; CNetMsg_Cl_Vote Msg = {v}; Client()->SendPackMsg(&Msg, MSGFLAG_VITAL); }