]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
use latest ping from client struct rather than averaging ping_times
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 6 Jun 2005 07:20:12 +0000 (07:20 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 6 Jun 2005 07:20:12 +0000 (07:20 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5402 d7cf8633-e32d-0410-b094-e92efae38249

host_cmd.c

index 2d43d82c6c3eb223f2a05af683a2d51fadcf3758..b349af1e11795ce7e6adffb390260c94107a8781 100644 (file)
@@ -224,11 +224,7 @@ void Host_Ping_f (void)
        {
                if (!client->active)
                        continue;
-               total = 0;
-               for (j=0 ; j<NUM_PING_TIMES ; j++)
-                       total+=client->ping_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);
        }
 }