mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Check vote setup command for admin rights
This commit is contained in:
parent
a7085d7494
commit
89953dfe42
1 changed files with 1 additions and 3 deletions
|
|
@ -5713,8 +5713,7 @@ static void Got_SetupVotecmd(const UINT8 **cp, INT32 playernum)
|
||||||
INT16 tempVoteLevels[VOTE_NUM_LEVELS][2];
|
INT16 tempVoteLevels[VOTE_NUM_LEVELS][2];
|
||||||
INT32 i;
|
INT32 i;
|
||||||
|
|
||||||
/*
|
if (playernum != serverplayer && !IsPlayerAdmin(playernum)) // admin shouldn't be able to set up vote...
|
||||||
if (playernum != serverplayer) // 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]);
|
CONS_Alert(CONS_WARNING, M_GetText("Illegal vote setup received from %s\n"), player_names[playernum]);
|
||||||
if (server)
|
if (server)
|
||||||
|
|
@ -5723,7 +5722,6 @@ static void Got_SetupVotecmd(const UINT8 **cp, INT32 playernum)
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
newGametype = READINT16(*cp);
|
newGametype = READINT16(*cp);
|
||||||
baseEncore = (boolean)READUINT8(*cp);
|
baseEncore = (boolean)READUINT8(*cp);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue