Ignore spectators for gentlemen's ping

This commit is contained in:
James R 2020-03-22 18:55:28 -07:00
parent 464e3273a9
commit 90d415ccc0

View file

@ -5455,7 +5455,7 @@ static void UpdatePingTable(void)
{ {
if (playeringame[i] && playernode[i] > 0) if (playeringame[i] && playernode[i] > 0)
{ {
if (! server_lagless && playernode[i] > 0) if (! server_lagless && playernode[i] > 0 && !players[i].spectator)
{ {
lag = GetLag(playernode[i]); lag = GetLag(playernode[i]);
realpingtable[i] += G_TicsToMilliseconds(lag); realpingtable[i] += G_TicsToMilliseconds(lag);