mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +00:00
Actually pay attention to K_PlayerIDAllowedInMidVote for access to calling votes
This commit is contained in:
parent
b59346f637
commit
685e1b019f
2 changed files with 10 additions and 0 deletions
|
|
@ -4384,6 +4384,10 @@ void M_DrawPause(void)
|
||||||
if (g_midVote.delay != 1)
|
if (g_midVote.delay != 1)
|
||||||
maintext = va("%u", ((g_midVote.delay - 1) / TICRATE) + 1);
|
maintext = va("%u", ((g_midVote.delay - 1) / TICRATE) + 1);
|
||||||
}
|
}
|
||||||
|
else if (K_PlayerIDAllowedInMidVote(consoleplayer) == false)
|
||||||
|
{
|
||||||
|
maintext = "SPECTATING";
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
maintext = "INVALID!?";
|
maintext = "INVALID!?";
|
||||||
|
|
|
||||||
|
|
@ -575,6 +575,12 @@ boolean K_MinimalCheckNewMidVote(midVoteType_e type)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (K_PlayerIDAllowedInMidVote(consoleplayer) == false)
|
||||||
|
{
|
||||||
|
// Invalid calling player.
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue