From da7cd03f09abc15bde0fbd4f9adc28aa3bd5f07e Mon Sep 17 00:00:00 2001 From: smallmodel <15067410+smallmodel@users.noreply.github.com> Date: Sun, 27 Oct 2024 13:42:42 +0100 Subject: [PATCH] Increase packed animation time precision This tries to fix some client commands replaying --- code/qcommon/msg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/qcommon/msg.cpp b/code/qcommon/msg.cpp index 622412bc..2c39f67a 100644 --- a/code/qcommon/msg.cpp +++ b/code/qcommon/msg.cpp @@ -2263,7 +2263,7 @@ float MSG_ReadPackedAnimTime_ver_15(msg_t* msg, int bits, float fromValue, float { int packed; if (!MSG_ReadBits(msg, 1)) { - return ceil((fromValue + frameTime) * 1000) / 1000; + return ceil((fromValue + frameTime) * 10000) / 10000; } packed = MSG_ReadBits(msg, bits);