From a052be05f6d08a96a6b557604ee1f201c01ed9a8 Mon Sep 17 00:00:00 2001 From: bones_was_here Date: Tue, 6 Apr 2021 01:33:52 +1000 Subject: [PATCH] Round scoreboard pings instead of implicitly flooring --- qcsrc/server/world.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/server/world.qc b/qcsrc/server/world.qc index bffb7dbd59..25c2cfb18e 100644 --- a/qcsrc/server/world.qc +++ b/qcsrc/server/world.qc @@ -69,7 +69,7 @@ void PingPLReport_Think(entity this) { WriteHeader(MSG_BROADCAST, TE_CSQC_PINGPLREPORT); WriteByte(MSG_BROADCAST, this.cnt); - WriteShort(MSG_BROADCAST, bound(1, CS(e).ping, 32767)); + WriteShort(MSG_BROADCAST, bound(1, rint(CS(e).ping), 32767)); WriteByte(MSG_BROADCAST, min(ceil(CS(e).ping_packetloss * 255), 255)); WriteByte(MSG_BROADCAST, min(ceil(CS(e).ping_movementloss * 255), 255)); -- 2.39.2