Fixed MSG_WritePackedAnimTime not writing the animation time sometimes

This commit is contained in:
smallmodel 2023-08-20 02:33:08 +02:00
parent 8ae15be0de
commit 6c65bba279
No known key found for this signature in database
GPG key ID: A96F163ED4891440

View file

@ -2240,7 +2240,7 @@ void MSG_WritePackedAnimTime_ver_15(msg_t* msg, float fromValue, float toValue,
{
int packed;
if (fabs(fromValue - toValue) < frameTime) {
if (fabs(toValue - fromValue - frameTime) < 0.001f) {
// below the frame time, don't send
MSG_WriteBits(msg, 0, 1);
return;