1
0
forked from 0ad/0ad

Clicking on empty space only clears the selection if modifiers aren't held. Fixes #1561.

This was SVN commit r12221.
This commit is contained in:
Deiz 2012-07-29 17:42:35 +00:00
parent 467195e712
commit 16ef74d9fe

View File

@ -1116,8 +1116,11 @@ function handleInputAfterGui(ev)
var ents = Engine.PickEntitiesAtPoint(ev.x, ev.y);
if (!ents.length)
{
g_Selection.reset();
resetIdleUnit();
if (!Engine.HotkeyIsPressed("selection.add") && !Engine.HotkeyIsPressed("selection.remove"))
{
g_Selection.reset();
resetIdleUnit();
}
inputState = INPUT_NORMAL;
return true;
}