]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix #2448 "HUD editor cursor stuck after exit"
authorterencehill <piuntn@gmail.com>
Wed, 27 May 2020 21:33:25 +0000 (23:33 +0200)
committerterencehill <piuntn@gmail.com>
Wed, 27 May 2020 21:33:25 +0000 (23:33 +0200)
qcsrc/client/view.qc

index 57cd15a78bd7fd68cac6454b13232d56a4b1d1c4..baf749ff47ee44d929a6329f0e8602e589e836cb 100644 (file)
@@ -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