]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Don't let a full server frame occur before sending input events to the server
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 1 Jul 2020 18:58:22 +0000 (18:58 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 1 Jul 2020 18:58:22 +0000 (18:58 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12771 d7cf8633-e32d-0410-b094-e92efae38249

host.c

diff --git a/host.c b/host.c
index fc46a2292c4714c0310e3bfe19da16d503e84722..c96584f678872dfe7ba7e53cc1fc19f4f3e53d23 100644 (file)
--- a/host.c
+++ b/host.c
@@ -486,11 +486,6 @@ void Host_Main(void)
                if(!*sv_random_seed.string && !cls.demoplayback)
                        rand();
 
-               // get new key events
-               Key_EventQueue_Unblock();
-               SndSys_SendKeyEvents();
-               Sys_SendKeyEvents();
-
                NetConn_UpdateSockets();
 
                Log_DestBuffer_Flush();
@@ -666,6 +661,11 @@ void Host_Main(void)
        //
        //-------------------
 
+               // get new key events
+               Key_EventQueue_Unblock();
+               SndSys_SendKeyEvents();
+               Sys_SendKeyEvents();
+
                if (cls.state != ca_dedicated && (cl_timer > 0 || cls.timedemo || ((vid_activewindow ? cl_maxfps : cl_maxidlefps).value < 1)))
                {
                        R_TimeReport("---");