summaryrefslogtreecommitdiff
path: root/source/cl_parse.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2007-11-24 01:05:28 +0000
committerAndrey Nazarov <skuller@skuller.net>2007-11-24 01:05:28 +0000
commit5eaaac93ad3b0d2777815717059d977912bd96f7 (patch)
treedcfa5d015f4035034e16f11f7adc1013d2fa5880 /source/cl_parse.c
parent3f0f134217531bd2f7d099f12e4ea77d3565cf91 (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_parse.c')
-rw-r--r--source/cl_parse.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source/cl_parse.c b/source/cl_parse.c
index ae87e4a..b42c7b2 100644
--- a/source/cl_parse.c
+++ b/source/cl_parse.c
@@ -441,13 +441,16 @@ static void CL_SetActiveState( void ) {
cl.oldframe.valid = qfalse;
cl.frameflags = 0;
cl.putaway = qfalse;
+ if( cls.netchan ) {
+ cl.initialSeq = cls.netchan->outgoing_sequence;
+ }
if( !cls.demoplayback ) {
VectorScale( cl.frame.ps.pmove.origin, 0.125f, cl.predicted_origin );
VectorCopy( cl.frame.ps.viewangles, cl.predicted_angles );
}
- SCR_ClearLagometer();
+ SCR_LagClear();
SCR_ClearChatHUD_f();
SCR_EndLoadingPlaque (); // get rid of loading plaque
Con_Close(); // close console
@@ -636,7 +639,7 @@ static void CL_ParseFrame( int extrabits ) {
int rtt = 0;
if( cls.netchan ) {
int seq = cls.netchan->incoming_acknowledged & CMD_MASK;
- rtt = cls.realtime - cl.history[seq].realtime;
+ rtt = cls.realtime - cl.history[seq].sent;
}
Com_Printf( "%3i: frame:%i delta:%i rtt:%i\n",
msg_read.readcount - 1, frame.number, frame.delta, rtt );