From 5836d56d7bcff415f287c4ecc3e2d5f1460e540a Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 9 Jun 2005 11:55:07 +0000 Subject: [PATCH] round off ping listings to nearest integer git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5413 d7cf8633-e32d-0410-b094-e92efae38249 --- host_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- 2.39.2