MCPcopy Create free account
hub / github.com/JACoders/OpenJK / MSG_WriteDelta

Function MSG_WriteDelta

code/qcommon/msg.cpp:407–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

405#define LOG(x) if( cl_shownet->integer == 4 ) { Com_Printf("%s ", x ); };
406
407void MSG_WriteDelta( msg_t *msg, int oldV, int newV, int bits ) {
408 if ( oldV == newV ) {
409 MSG_WriteBits( msg, 0, 1 );
410 return;
411 }
412 MSG_WriteBits( msg, 1, 1 );
413 MSG_WriteBits( msg, newV, bits );
414}
415
416int MSG_ReadDelta( msg_t *msg, int oldV, int bits ) {
417 if ( MSG_ReadBits( msg, 1 ) ) {

Callers 1

MSG_WriteDeltaUsercmdFunction · 0.70

Calls 1

MSG_WriteBitsFunction · 0.70

Tested by

no test coverage detected