Merge the two NEWPING parts of NetUpdate into one block

This commit is contained in:
Monster Iestyn 2017-06-01 20:43:24 +01:00
parent 3d86e7135d
commit fe15305df0

View file

@ -4560,16 +4560,11 @@ void NetUpdate(void)
gametime = nowtime;
if (!(gametime % 255) && netgame && server)
{
#ifdef NEWPING
PingUpdate();
#endif
}
#ifdef NEWPING
if (server)
{
if (netgame && !(gametime % 255))
PingUpdate();
// update node latency values so we can take an average later.
for (i = 0; i < MAXPLAYERS; i++)
if (playeringame[i])