removed local player from kick vote menu

This commit is contained in:
oy 2011-03-25 09:27:46 +01:00
parent ae325c873f
commit d78c84b105

View file

@ -357,7 +357,7 @@ void CMenus::RenderServerControlKick(CUIRect MainView)
static int aPlayerIDs[MAX_CLIENTS];
for(int i = 0; i < MAX_CLIENTS; i++)
{
if(!m_pClient->m_Snap.m_paPlayerInfos[i])
if(!m_pClient->m_Snap.m_paPlayerInfos[i] || i == m_pClient->m_Snap.m_LocalClientID)
continue;
if(m_CallvoteSelectedPlayer == i)
Selected = NumOptions;