mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
MSG_DeltaNeeded_ver_15 was never called
This commit is contained in:
parent
ab91ade685
commit
0333fd86f8
1 changed files with 6 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue