mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2024-11-10 07:11:36 +00:00
IOQ3 commit 2387
This commit is contained in:
parent
0a8b63d191
commit
a0bc7f3a70
1 changed files with 4 additions and 4 deletions
|
@ -562,7 +562,7 @@ delta functions
|
||||||
|
|
||||||
extern cvar_t *cl_shownet;
|
extern cvar_t *cl_shownet;
|
||||||
|
|
||||||
#define LOG(x) if( cl_shownet->integer == 4 ) { Com_Printf("%s ", x ); };
|
#define LOG(x) if( cl_shownet && cl_shownet->integer == 4 ) { Com_Printf("%s ", x ); };
|
||||||
|
|
||||||
void MSG_WriteDelta( msg_t *msg, int oldV, int newV, int bits ) {
|
void MSG_WriteDelta( msg_t *msg, int oldV, int newV, int bits ) {
|
||||||
if ( oldV == newV ) {
|
if ( oldV == newV ) {
|
||||||
|
@ -1050,7 +1050,7 @@ void MSG_ReadDeltaEntity( msg_t *msg, entityState_t *from, entityState_t *to,
|
||||||
if ( MSG_ReadBits( msg, 1 ) == 1 ) {
|
if ( MSG_ReadBits( msg, 1 ) == 1 ) {
|
||||||
Com_Memset( to, 0, sizeof( *to ) );
|
Com_Memset( to, 0, sizeof( *to ) );
|
||||||
to->number = MAX_GENTITIES - 1;
|
to->number = MAX_GENTITIES - 1;
|
||||||
if ( cl_shownet->integer >= 2 || cl_shownet->integer == -1 ) {
|
if ( cl_shownet && ( cl_shownet->integer >= 2 || cl_shownet->integer == -1 ) ) {
|
||||||
Com_Printf( "%3i: #%-3i remove\n", msg->readcount, number );
|
Com_Printf( "%3i: #%-3i remove\n", msg->readcount, number );
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
@ -1072,7 +1072,7 @@ void MSG_ReadDeltaEntity( msg_t *msg, entityState_t *from, entityState_t *to,
|
||||||
|
|
||||||
// shownet 2/3 will interleave with other printed info, -1 will
|
// shownet 2/3 will interleave with other printed info, -1 will
|
||||||
// just print the delta records`
|
// just print the delta records`
|
||||||
if ( cl_shownet->integer >= 2 || cl_shownet->integer == -1 ) {
|
if ( cl_shownet && ( cl_shownet->integer >= 2 || cl_shownet->integer == -1 ) ) {
|
||||||
print = 1;
|
print = 1;
|
||||||
Com_Printf( "%3i: #%-3i ", msg->readcount, to->number );
|
Com_Printf( "%3i: #%-3i ", msg->readcount, to->number );
|
||||||
} else {
|
} else {
|
||||||
|
@ -1389,7 +1389,7 @@ void MSG_ReadDeltaPlayerstate (msg_t *msg, playerState_t *from, playerState_t *t
|
||||||
|
|
||||||
// shownet 2/3 will interleave with other printed info, -2 will
|
// shownet 2/3 will interleave with other printed info, -2 will
|
||||||
// just print the delta records
|
// just print the delta records
|
||||||
if ( cl_shownet->integer >= 2 || cl_shownet->integer == -2 ) {
|
if ( cl_shownet && ( cl_shownet->integer >= 2 || cl_shownet->integer == -2 ) ) {
|
||||||
print = 1;
|
print = 1;
|
||||||
Com_Printf( "%3i: playerstate ", msg->readcount );
|
Com_Printf( "%3i: playerstate ", msg->readcount );
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue