MSG_DeltaNeeded_ver_15 was never called

This commit is contained in:
smallmodel 2024-06-08 21:52:28 +02:00
parent ab91ade685
commit 0333fd86f8
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -2645,11 +2645,12 @@ void MSG_WritePackedCoordExtra(msg_t* msg, float fromValue, float toValue, int b
}
}
qboolean MSG_DeltaNeeded(const void* fromField, const void* toField, int fieldType, int bits)
{
// Unoptimized in base game
// Doesn't compare packed values
return *(int*)fromField != *(int*)toField;
qboolean MSG_DeltaNeeded(const void* fromField, const void* toField, int fieldType, int bits) {
if (MSG_IsProtocolVersion15()) {
return MSG_DeltaNeeded_ver_15(fromField, toField, fieldType, bits);
} else {
return MSG_DeltaNeeded_ver_6(fromField, toField, fieldType, bits);
}
}
float MSG_ReadPackedVelocity(msg_t* msg, int bits)