mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-30 20:50:42 +00:00
make showpackets a little more usable and informative
This commit is contained in:
parent
66a29c3945
commit
9482a7c0b7
1 changed files with 5 additions and 4 deletions
|
@ -315,10 +315,11 @@ Netchan_Transmit (netchan_t *chan, int length, byte *data)
|
||||||
if (net_nochoke)
|
if (net_nochoke)
|
||||||
chan->cleartime = *net_realtime;
|
chan->cleartime = *net_realtime;
|
||||||
|
|
||||||
if (showpackets->int_val)
|
if (showpackets->int_val & 1)
|
||||||
Con_Printf ("--> s=%i(%i) a=%i(%i) %i\n", chan->outgoing_sequence,
|
Con_Printf ("--> s=%i(%i) a=%i(%i) %-4i %i\n", chan->outgoing_sequence,
|
||||||
send_reliable, chan->incoming_sequence,
|
send_reliable, chan->incoming_sequence,
|
||||||
chan->incoming_reliable_sequence, send.cursize);
|
chan->incoming_reliable_sequence, send.cursize,
|
||||||
|
chan->outgoing_sequence - chan->incoming_sequence);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -352,7 +353,7 @@ Netchan_Process (netchan_t *chan)
|
||||||
sequence &= ~(1 << 31);
|
sequence &= ~(1 << 31);
|
||||||
sequence_ack &= ~(1 << 31);
|
sequence_ack &= ~(1 << 31);
|
||||||
|
|
||||||
if (showpackets->int_val)
|
if (showpackets->int_val & 2)
|
||||||
Con_Printf ("<-- s=%i(%i) a=%i(%i) %i\n", sequence, reliable_message,
|
Con_Printf ("<-- s=%i(%i) a=%i(%i) %i\n", sequence, reliable_message,
|
||||||
sequence_ack, reliable_ack, net_message->message->cursize);
|
sequence_ack, reliable_ack, net_message->message->cursize);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue