Fixed an odd bug

This commit is contained in:
TehRealSalt 2018-02-27 20:46:01 -05:00
parent adfe3337cb
commit 29e4c6764d

View file

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