Increase packed animation time precision

This tries to fix some client commands replaying
This commit is contained in:
smallmodel 2024-10-27 13:42:42 +01:00
parent 6934e5cff8
commit da7cd03f09
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -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);