From: terencehill Date: Sun, 26 May 2013 10:32:26 +0000 (+0200) Subject: If the menu gets closed do not update mouse position: it prevents mouse jumping to... X-Git-Tag: xonotic-v0.7.0~40^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=253fbd0f4f4eb653e88d9dc318bd0e78a731adf3;p=xonotic%2Fxonotic-data.pk3dir.git If the menu gets closed do not update mouse position: it prevents mouse jumping to '0 0 0' when menu is fading out --- diff --git a/qcsrc/menu/menu.qc b/qcsrc/menu/menu.qc index 2dc73a8d2..a76efb8e3 100644 --- a/qcsrc/menu/menu.qc +++ b/qcsrc/menu/menu.qc @@ -784,7 +784,12 @@ void m_draw() draw_alpha *= menuAlpha; - if(menuMouseMode) + if(!Menu_Active) + { + // do not update mouse position + // it prevents mouse jumping to '0 0 0' when menu is fading out + } + else if(menuMouseMode) { vector newMouse; newMouse = globalToBox(getmousepos(), draw_shift, draw_scale);