Don't change item selection with mouse while scanning for new key bind (#159)

# Conflicts:
#	.gitignore
This commit is contained in:
CommonLoon102 2019-09-08 13:24:21 +00:00 committed by Christoph Oelckers
parent d6d8762400
commit e8337c783e
2 changed files with 4 additions and 1 deletions

3
.gitignore vendored
View file

@ -19,6 +19,9 @@ apps/
*.ppc
*.app
/movie
/blud*.png
/game*.sav
*.log
*.cache
*.cfg

View file

@ -1176,7 +1176,7 @@ void CGameMenuItemKeyList::Draw(void)
int my = y<<16;
int mw = m_nWidth<<16;
int mh = height<<16;
if (bEnable && MOUSEACTIVECONDITIONAL(!gGameMenuMgr.MouseOutsideBounds(&gGameMenuMgr.m_mousepos, mx, my, mw, mh)))
if (!bScan && bEnable && MOUSEACTIVECONDITIONAL(!gGameMenuMgr.MouseOutsideBounds(&gGameMenuMgr.m_mousepos, mx, my, mw, mh)))
{
if (MOUSEWATCHPOINTCONDITIONAL(!gGameMenuMgr.MouseOutsideBounds(&gGameMenuMgr.m_prevmousepos, mx, my, mw, mh)))
{