From d38bc9d849c616c112f6a05c4cdde29d861c9184 Mon Sep 17 00:00:00 2001 From: Buginator Date: Thu, 2 Sep 2010 02:53:13 +0000 Subject: [PATCH] Turn off dragging when a in-game popup / menu is shown. Fixes ticket:2086 git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/branches/2.3@11565 4a71c877-e1ca-e34f-864e-861f7616d084 (cherry picked from commit 686927f2a4626c56e218c92b83cf15e747f180f8) --- src/display.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/display.c b/src/display.c index 69ed0e71b..91d4df3f9 100644 --- a/src/display.c +++ b/src/display.c @@ -462,6 +462,11 @@ void processInput(void) BOOL mOverRadar = false; int WheelZoomIterator; + if (InGameOpUp || isInGamePopupUp) + { + dragBox3D.status = DRAG_RELEASED; // disengage the dragging since it stops menu input + } + if(radarOnScreen && getHQExists(selectedPlayer) && CoordInRadar(mouseX(), mouseY())) { mOverRadar = true;