From 253fbd0f4f4eb653e88d9dc318bd0e78a731adf3 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sun, 26 May 2013 12:32:26 +0200 Subject: [PATCH] If the menu gets closed do not update mouse position: it prevents mouse jumping to '0 0 0' when menu is fading out --- qcsrc/menu/menu.qc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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); -- 2.39.2