fix to non-VM_UI builds
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1344 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
bc810377fd
commit
4e17c00d14
1 changed files with 9 additions and 1 deletions
|
@ -1363,7 +1363,11 @@ static void ProcessMouse(mouse_t *mouse, usercmd_t *cmd, int pnum)
|
||||||
if(in_xflip.value) mx *= -1;
|
if(in_xflip.value) mx *= -1;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (mouseusedforgui || (key_dest == key_menu && m_state == m_complex) || UI_MenuState())
|
if (mouseusedforgui || (key_dest == key_menu && m_state == m_complex)
|
||||||
|
#ifdef VM_UI
|
||||||
|
|| UI_MenuState()
|
||||||
|
#endif
|
||||||
|
)
|
||||||
{
|
{
|
||||||
mousemove_x += mx;
|
mousemove_x += mx;
|
||||||
mousemove_y += my;
|
mousemove_y += my;
|
||||||
|
@ -1382,7 +1386,9 @@ static void ProcessMouse(mouse_t *mouse, usercmd_t *cmd, int pnum)
|
||||||
mousecursor_y = vid.height - 1;
|
mousecursor_y = vid.height - 1;
|
||||||
mx=my=0;
|
mx=my=0;
|
||||||
|
|
||||||
|
#ifdef VM_UI
|
||||||
UI_MousePosition(mousecursor_x, mousecursor_y);
|
UI_MousePosition(mousecursor_x, mousecursor_y);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_filter.value)
|
if (m_filter.value)
|
||||||
|
@ -1487,7 +1493,9 @@ void IN_MouseMove (usercmd_t *cmd, int pnum)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef VM_UI
|
||||||
UI_MousePosition(mousecursor_x, mousecursor_y);
|
UI_MousePosition(mousecursor_x, mousecursor_y);
|
||||||
|
#endif
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue