Fixed an odd bug
This commit is contained in:
parent
adfe3337cb
commit
29e4c6764d
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue