From: terencehill Date: Wed, 27 May 2020 21:33:25 +0000 (+0200) Subject: Fix #2448 "HUD editor cursor stuck after exit" X-Git-Tag: xonotic-v0.8.5~1019 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5452e5983eb101c9eb38818b7df4369cc40c953a;p=xonotic%2Fxonotic-data.pk3dir.git Fix #2448 "HUD editor cursor stuck after exit" --- diff --git a/qcsrc/client/view.qc b/qcsrc/client/view.qc index 57cd15a78..baf749ff4 100644 --- a/qcsrc/client/view.qc +++ b/qcsrc/client/view.qc @@ -1635,6 +1635,7 @@ void ViewLocation_Mouse() viewloc_mousepos.y = bound(0, viewloc_mousepos.y, vid_conheight); //float cursor_alpha = 1 - autocvar__menu_alpha; + //cursor_type = CURSOR_NORMAL; //draw_cursor(viewloc_mousepos, '0.5 0.5 0', "/cursor_move", '1 1 1', cursor_alpha); } @@ -1675,6 +1676,7 @@ void HUD_Mouse(entity player) if(!autocvar_hud_cursormode) update_mousepos(); + cursor_type = CURSOR_NORMAL; if(autocvar__hud_configure) HUD_Panel_Mouse(); else