mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-13 21:31:32 +00:00
Allow antigrief to be tested in dev builds (copy of internal commit)
This commit is contained in:
parent
375a635c8a
commit
d557b7f962
1 changed files with 5 additions and 1 deletions
|
@ -8511,7 +8511,11 @@ void P_PlayerThink(player_t *player)
|
|||
const tic_t griefval = cv_antigrief.value * TICRATE;
|
||||
const UINT8 n = player - players;
|
||||
|
||||
if (n != serverplayer && !IsPlayerAdmin(n))
|
||||
if (n != serverplayer
|
||||
#ifndef DEVELOP
|
||||
&& !IsPlayerAdmin(n)
|
||||
#endif
|
||||
)
|
||||
{
|
||||
if (player->grieftime > griefval)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue