]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Release the mouse during loading screen
authorkiwixz <kiwixz@outlook.com>
Sat, 28 Jan 2023 14:34:38 +0000 (15:34 +0100)
committerkiwixz <kiwixz@outlook.com>
Sat, 28 Jan 2023 14:34:38 +0000 (15:34 +0100)
Signed-off-by: kiwixz <kiwixz@outlook.com>
cl_screen.c

index d815074766c1096c106aeb6d9f5dce6fb0ea69db..b9b2f64df237b7543ca5696fafecabedf3c2b2be 100644 (file)
@@ -2332,7 +2332,7 @@ void CL_UpdateScreen(void)
                VID_SetMouse(vid.fullscreen, false, false);
        else if (key_dest == key_menu_grabbed)
                VID_SetMouse(true, vid_mouse.integer && !in_client_mouse && !vid_touchscreen.integer, !vid_touchscreen.integer);
-       else if (key_dest == key_menu)
+       else if (key_dest == key_menu || scr_loading)
                VID_SetMouse(vid.fullscreen, vid_mouse.integer && !in_client_mouse && !vid_touchscreen.integer, !vid_touchscreen.integer);
        else
                VID_SetMouse(vid.fullscreen, vid_mouse.integer && !cl.csqc_wantsmousemove && cl_prydoncursor.integer <= 0 && (!cls.demoplayback || cl_demo_mousegrab.integer) && !vid_touchscreen.integer, !vid_touchscreen.integer);