From: havoc Date: Thu, 9 Jun 2005 11:55:07 +0000 (+0000) Subject: round off ping listings to nearest integer X-Git-Tag: xonotic-v0.1.0preview~4769 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5836d56d7bcff415f287c4ecc3e2d5f1460e540a;p=xonotic%2Fdarkplaces.git round off ping listings to nearest integer git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5413 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/host_cmd.c b/host_cmd.c index 654abb55..37b0dc9d 100644 --- a/host_cmd.c +++ b/host_cmd.c @@ -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); } }