Fixed an odd bug

This commit is contained in:
TehRealSalt 2018-02-27 20:46:01 -05:00
parent adfe3337cb
commit 29e4c6764d
1 changed files with 17 additions and 6 deletions

View File

@ -2368,18 +2368,29 @@ void Y_VoteTicker(void)
if (server)
{
if (splitscreen)
{
if (votes[0] == -1)
return;
}
else
if (timer == 0)
{
for (i = 0; i < MAXPLAYERS; i++)
{
if ((playeringame[i] && !players[i].spectator) && votes[i] == -1)
votes[i] = 3;
}
}
else
{
if (splitscreen)
{
if (votes[0] == -1)
return;
}
else
{
for (i = 0; i < MAXPLAYERS; i++)
{
if ((playeringame[i] && !players[i].spectator) && votes[i] == -1)
return;
}
}
}
timer = 0;