From: havoc Date: Mon, 6 Jun 2005 07:20:12 +0000 (+0000) Subject: use latest ping from client struct rather than averaging ping_times X-Git-Tag: xonotic-v0.1.0preview~4780 X-Git-Url: https://git.xonotic.org/?a=commitdiff_plain;h=d832bd02036333e668c73087cf06033a234d0d2a;p=xonotic%2Fdarkplaces.git use latest ping from client struct rather than averaging ping_times git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5402 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/host_cmd.c b/host_cmd.c index 2d43d82c..b349af1e 100644 --- a/host_cmd.c +++ b/host_cmd.c @@ -224,11 +224,7 @@ void Host_Ping_f (void) { if (!client->active) continue; - total = 0; - for (j=0 ; jping_times[j]; - total /= NUM_PING_TIMES; - SV_ClientPrintf("%4i %s\n", (int)(total*1000), client->name); + SV_ClientPrintf("%4i %s\n", (int)(client->ping*1000), client->name); } }