diff --git a/nq/include/client.h b/nq/include/client.h index fe6fb5851..ff0c203d8 100644 --- a/nq/include/client.h +++ b/nq/include/client.h @@ -185,7 +185,7 @@ typedef struct { double oldtime; // Previous cl.time, time-oldtime is used // to decay light values and smooth step ups - float last_received_message; // (realtime) for net trouble icon + double last_servermessage; // (realtime) for net trouble icon /* information that is static for the entire time connected to a server */ diff --git a/nq/source/cl_main.c b/nq/source/cl_main.c index 054d60677..00c089a5b 100644 --- a/nq/source/cl_main.c +++ b/nq/source/cl_main.c @@ -426,7 +426,6 @@ CL_ReadFromServer (void) if (!ret) break; - cl.last_received_message = realtime; CL_ParseServerMessage (); } while (ret && cls.state >= ca_connected); diff --git a/nq/source/cl_parse.c b/nq/source/cl_parse.c index 0b8e5972b..3855481c5 100644 --- a/nq/source/cl_parse.c +++ b/nq/source/cl_parse.c @@ -833,6 +833,8 @@ CL_ParseServerMessage (void) static dstring_t *stuffbuf; signon_t so; + cl.last_servermessage = realtime; + // if recording demos, copy the message out if (cl_shownet->int_val == 1) Sys_Printf ("%i ", net_message->message->cursize); diff --git a/nq/source/cl_screen.c b/nq/source/cl_screen.c index 1a0f8e7be..da5163c5c 100644 --- a/nq/source/cl_screen.c +++ b/nq/source/cl_screen.c @@ -54,7 +54,7 @@ static qpic_t *scr_net; static void SCR_DrawNet (void) { - if (realtime - cl.last_received_message < 0.3) + if (realtime - cl.last_servermessage < 0.3) return; if (cls.demoplayback) return;