1
0
forked from 0ad/0ad

Fix missing double negation in a1ddf6114a / D1021.

This was SVN commit r21394.
This commit is contained in:
elexis 2018-02-27 19:51:53 +00:00
parent 5db56fce33
commit 7dd14f4512

View File

@ -1190,7 +1190,7 @@ function positionUnitsFreehandSelectionMouseUp(ev)
if (lengthOfLine < g_FreehandSelection_MinLengthOfLine || selection.length < g_FreehandSelection_MinNumberOfUnits)
{
let action = determineAction(ev.x, ev.y);
return action && doAction(action, ev);
return !!action && doAction(action, ev);
}
// Even distribution of the units on the line.