Actually pay attention to K_PlayerIDAllowedInMidVote for access to calling votes

This commit is contained in:
toaster 2023-06-27 23:59:46 +01:00
parent b59346f637
commit 685e1b019f
2 changed files with 10 additions and 0 deletions

View file

@ -4384,6 +4384,10 @@ void M_DrawPause(void)
if (g_midVote.delay != 1)
maintext = va("%u", ((g_midVote.delay - 1) / TICRATE) + 1);
}
else if (K_PlayerIDAllowedInMidVote(consoleplayer) == false)
{
maintext = "SPECTATING";
}
else
{
maintext = "INVALID!?";

View file

@ -575,6 +575,12 @@ boolean K_MinimalCheckNewMidVote(midVoteType_e type)
return false;
}
if (K_PlayerIDAllowedInMidVote(consoleplayer) == false)
{
// Invalid calling player.
return false;
}
return true;
}