]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
hopefully fix the crash issue on windows by hitting esc during loading by ignoring...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 4 Apr 2009 20:08:43 +0000 (20:08 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 4 Apr 2009 20:08:43 +0000 (20:08 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8862 d7cf8633-e32d-0410-b094-e92efae38249

cl_screen.c

index 55333781067684a37a4b1ff0813065c3eb83d95e..bfd5ed0a61f5722bc543f4390230396712b1496e 100644 (file)
@@ -1810,6 +1810,9 @@ static void SCR_DrawLoadingScreen_SharedFinish (qboolean clear)
 
 void SCR_UpdateLoadingScreen (qboolean clear)
 {
+       keydest_t       old_key_dest;
+       int                     old_key_consoleactive;
+
        if(loadingscreentime != realtime)
        {
                loadingscreentime = realtime;
@@ -1837,7 +1840,13 @@ void SCR_UpdateLoadingScreen (qboolean clear)
        SCR_DrawLoadingScreen_SharedFinish(clear);
 
        // this goes into the event loop, and should prevent unresponsive cursor on vista
+       old_key_dest = key_dest;
+       old_key_consoleactive = key_consoleactive;
+       key_dest = key_void;
+       key_consoleactive = false;
        Sys_SendKeyEvents();
+       key_dest = old_key_dest;
+       key_consoleactive = old_key_consoleactive;
 }
 
 extern cvar_t cl_minfps;