From d832bd02036333e668c73087cf06033a234d0d2a Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 6 Jun 2005 07:20:12 +0000 Subject: [PATCH] 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 --- host_cmd.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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); } } -- 2.39.2