Allow antigrief to be tested in dev builds (copy of internal commit)

This commit is contained in:
toaster 2021-12-03 20:41:57 +00:00
parent 375a635c8a
commit d557b7f962

View file

@ -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)
{