summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author/dev/humancontroller <devhc@example.com>2015-06-18 17:58:33 +0200
committer/dev/humancontroller <devhc@example.com>2017-03-09 13:51:06 +0100
commitd0b72361c847513f27a30f86cb54e9ba9c60c0f6 (patch)
treef5361f5e37d0766b0b855a521ada1b4bcb78360d /src
parentfe068e5491534206f386c31fa71568872eb7dc13 (diff)
do not wipe cls.realtime when restarting the client for an fs_game change
otherwise, the client won't send connection/downloading-related packets until the timer reaches clc.lastPacketSentTime again
Diffstat (limited to 'src')
-rw-r--r--src/client/cl_main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/cl_main.c b/src/client/cl_main.c
index dbaaa2a9..97d15077 100644
--- a/src/client/cl_main.c
+++ b/src/client/cl_main.c
@@ -3569,8 +3569,6 @@ void CL_Init( void ) {
cl_oldGameSet = qfalse;
}
- cls.realtime = 0;
-
CL_InitInput ();
//
@@ -3771,6 +3769,7 @@ CL_Shutdown
void CL_Shutdown(char *finalmsg, qboolean disconnect, qboolean quit)
{
static qboolean recursive = qfalse;
+ int realtime;
// check whether the client is running at all.
if(!(com_cl_running && com_cl_running->integer))
@@ -3823,7 +3822,9 @@ void CL_Shutdown(char *finalmsg, qboolean disconnect, qboolean quit)
recursive = qfalse;
+ realtime = cls.realtime;
Com_Memset( &cls, 0, sizeof( cls ) );
+ cls.realtime = realtime;
Key_SetCatcher( 0 );
Com_Printf( "-----------------------\n" );