mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-17 02:01:15 +00:00
Maybe fixed dedicated?
This commit is contained in:
parent
ccc6a03d17
commit
6650e6c49c
1 changed files with 10 additions and 0 deletions
|
@ -2192,6 +2192,9 @@ void Y_VoteDrawer(void)
|
||||||
|
|
||||||
for (i = 0; i < MAXPLAYERS; i++)
|
for (i = 0; i < MAXPLAYERS; i++)
|
||||||
{
|
{
|
||||||
|
if (dedicated && i == 0) // While leaving blank spots for non-existent players is largely intentional, the first spot *always* being blank looks a tad silly :V
|
||||||
|
continue;
|
||||||
|
|
||||||
if ((playeringame[i] && !players[i].spectator) && votes[i] != -1)
|
if ((playeringame[i] && !players[i].spectator) && votes[i] != -1)
|
||||||
{
|
{
|
||||||
patch_t *pic;
|
patch_t *pic;
|
||||||
|
@ -2298,6 +2301,13 @@ void Y_VoteTicker(void)
|
||||||
numvotes++;
|
numvotes++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (numvotes < 1) // Whoops! Get outta here.
|
||||||
|
{
|
||||||
|
Y_UnloadVoteData();
|
||||||
|
Y_FollowIntermission();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
voteclient.rtics--;
|
voteclient.rtics--;
|
||||||
|
|
||||||
if (voteclient.rtics <= 0)
|
if (voteclient.rtics <= 0)
|
||||||
|
|
Loading…
Reference in a new issue