From: kiwixz Date: Sat, 28 Jan 2023 14:34:38 +0000 (+0100) Subject: Release the mouse during loading screen X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e4147673fc518d5d80fdb8b16fb736712600fc50;p=xonotic%2Fdarkplaces.git Release the mouse during loading screen Signed-off-by: kiwixz --- diff --git a/cl_screen.c b/cl_screen.c index d8150747..b9b2f64d 100644 --- a/cl_screen.c +++ b/cl_screen.c @@ -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);