X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=host_cmd.c;h=b88d27bcfd993d21693465b0e4a22ca5ce93ae2b;hb=69409e01d114e379ef09df6aaab9fac15da27d94;hp=d96572938371951c69a840d32c43105942082be4;hpb=01095c29fa18e3eaece7a3eeacd201c03f49803c;p=xonotic%2Fdarkplaces.git diff --git a/host_cmd.c b/host_cmd.c index d9657293..b88d27bc 100644 --- a/host_cmd.c +++ b/host_cmd.c @@ -209,6 +209,7 @@ Host_Ping_f */ void Host_Ping_f (void) { + int i; client_t *client; if (cmd_source == src_command) @@ -222,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); } } @@ -1793,7 +1794,7 @@ void Host_Startdemos_f (void) { int i, c; - if (cls.state == ca_dedicated || COM_CheckParm("-listen")) + if (cls.state == ca_dedicated || COM_CheckParm("-listen") || COM_CheckParm("-benchmark") || COM_CheckParm("-demo") || COM_CheckParm("-demolooponly")) return; c = Cmd_Argc() - 1;