]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/hud/hud_config.qc
Add update_mousepos()
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / hud / hud_config.qc
index 4f116d724fb35a8203132f7ff43cec23504ab142..f2b23e39256217b9f33019b51c2e94bdd1e8b59a 100644 (file)
@@ -1111,12 +1111,7 @@ void HUD_Panel_Mouse()
                return;
 
        if (!autocvar_hud_cursormode)
-       {
-               mousepos = mousepos + getmousepos() * autocvar_menu_mouse_speed;
-
-               mousepos.x = bound(0, mousepos.x, vid_conwidth);
-               mousepos.y = bound(0, mousepos.y, vid_conheight);
-       }
+               update_mousepos();
 
        if(mouseClicked)
        {