diff options
author | Andrey Nazarov <skuller@skuller.net> | 2007-11-24 01:05:28 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2007-11-24 01:05:28 +0000 |
commit | 5eaaac93ad3b0d2777815717059d977912bd96f7 (patch) | |
tree | dcfa5d015f4035034e16f11f7adc1013d2fa5880 /source/cl_input.c | |
parent | 3f0f134217531bd2f7d099f12e4ea77d3565cf91 (diff) |
Renamed `cl_uprate' and `cl_dnrate' to `net_uprate'
and `net_dnrate' respectively, moved related code to net_common.c
Simplified on-secreen lagometer, now controlled with `scr_lag_draw',
`scr_lag_x' and `scr_lag_y' variables.
Diffstat (limited to 'source/cl_input.c')
-rw-r--r-- | source/cl_input.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/source/cl_input.c b/source/cl_input.c index eb5c475..eee7be7 100644 --- a/source/cl_input.c +++ b/source/cl_input.c @@ -874,7 +874,8 @@ static void CL_SendDefaultCmd( void ) { // archive this packet history = &cl.history[cls.netchan->outgoing_sequence & CMD_MASK]; history->cmdNumber = cl.cmdNumber; - history->realtime = cls.realtime; // for ping calculation + history->sent = cls.realtime; // for ping calculation + history->rcvd = 0; cl.lastTransmitCmdNumber = cl.cmdNumber; @@ -938,8 +939,6 @@ static void CL_SendDefaultCmd( void ) { Com_Error( ERR_DISCONNECT, "Connection reset by peer" ); } - SCR_AddLagometerOutPacketInfo( i ); - if( cl_showpackets->integer ) { Com_Printf( "%i ", i ); } @@ -969,7 +968,8 @@ static void CL_SendBatchedCmd( void ) { seq = cls.netchan->outgoing_sequence; history = &cl.history[seq & CMD_MASK]; history->cmdNumber = cl.cmdNumber; - history->realtime = cls.realtime; // for ping calculation + history->sent = cls.realtime; // for ping calculation + history->rcvd = 0; cl.lastTransmitTime = cls.realtime; cl.lastTransmitCmdNumber = cl.cmdNumber; @@ -1030,8 +1030,6 @@ static void CL_SendBatchedCmd( void ) { Com_Error( ERR_DISCONNECT, "Connection reset by peer" ); } - SCR_AddLagometerOutPacketInfo( i ); - if( cl_showpackets->integer == 1 ) { Com_Printf( "%i(%i) ", i, totalCmds ); } else if( cl_showpackets->integer == 2 ) { |