From: bones_was_here Date: Mon, 5 Apr 2021 15:33:52 +0000 (+1000) Subject: Round scoreboard pings instead of implicitly flooring X-Git-Tag: xonotic-v0.8.5~405^2~19^2~3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a052be05f6d08a96a6b557604ee1f201c01ed9a8;p=xonotic%2Fxonotic-data.pk3dir.git Round scoreboard pings instead of implicitly flooring --- 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));