mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
removed local player from kick vote menu
This commit is contained in:
parent
ae325c873f
commit
d78c84b105
|
@ -357,7 +357,7 @@ void CMenus::RenderServerControlKick(CUIRect MainView)
|
||||||
static int aPlayerIDs[MAX_CLIENTS];
|
static int aPlayerIDs[MAX_CLIENTS];
|
||||||
for(int i = 0; i < MAX_CLIENTS; i++)
|
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;
|
continue;
|
||||||
if(m_CallvoteSelectedPlayer == i)
|
if(m_CallvoteSelectedPlayer == i)
|
||||||
Selected = NumOptions;
|
Selected = NumOptions;
|
||||||
|
|
Loading…
Reference in a new issue