From d0b72361c847513f27a30f86cb54e9ba9c60c0f6 Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Thu, 18 Jun 2015 17:58:33 +0200 Subject: 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 --- src/client/cl_main.c | 5 +++-- 1 file 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" ); -- cgit