]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
round off ping listings to nearest integer
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 9 Jun 2005 11:55:07 +0000 (11:55 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 9 Jun 2005 11:55:07 +0000 (11:55 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5413 d7cf8633-e32d-0410-b094-e92efae38249

host_cmd.c

index 654abb553bdeee0015e6074cfa55f0a4b7f583be..37b0dc9dc00bef0829758f36d76f83c4d2f746fa 100644 (file)
@@ -223,7 +223,7 @@ void Host_Ping_f (void)
        {
                if (!client->active)
                        continue;
-               SV_ClientPrintf("%4i %s\n", (int)(client->ping*1000), client->name);
+               SV_ClientPrintf("%4i %s\n", (int)floor(client->ping*1000+0.5), client->name);
        }
 }