| 405 | #define LOG(x) if( cl_shownet->integer == 4 ) { Com_Printf("%s ", x ); }; |
| 406 | |
| 407 | void 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 | |
| 416 | int MSG_ReadDelta( msg_t *msg, int oldV, int bits ) { |
| 417 | if ( MSG_ReadBits( msg, 1 ) ) { |
no test coverage detected