]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_screen.c
hopefully fix the crash issue on windows by hitting esc during loading by ignoring...
[xonotic/darkplaces.git] / 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;