]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host_cmd.c
round off ping listings to nearest integer
[xonotic/darkplaces.git] / 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);
        }
 }