mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-28 04:51:42 +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 (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…
Add table
Reference in a new issue