Merge branch 'allow-promoted-admin-gametypes' into 'master'

Allow promoted admins to trigger vote screen (gametype change)

See merge request KartKrew/Kart!2282
This commit is contained in:
Sal 2024-04-14 06:34:27 +00:00
commit 171df9e2fa

View file

@ -5713,7 +5713,7 @@ static void Got_SetupVotecmd(const UINT8 **cp, INT32 playernum)
INT16 tempVoteLevels[VOTE_NUM_LEVELS][2];
INT32 i;
if (playernum != serverplayer) // admin shouldn't be able to set up vote...
if (playernum != serverplayer && !IsPlayerAdmin(playernum)) // admin shouldn't be able to set up vote...
{
CONS_Alert(CONS_WARNING, M_GetText("Illegal vote setup received from %s\n"), player_names[playernum]);
if (server)