mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-25 15:01:13 +00:00
Fixed an odd bug
This commit is contained in:
parent
8c3f78a925
commit
f0990a1db9
1 changed files with 17 additions and 6 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue