oops
This commit is contained in:
@@ -41,6 +41,7 @@ namespace OpenRa.Game
|
|||||||
dragEnd = GetWorldPos(mi);
|
dragEnd = GetWorldPos(mi);
|
||||||
|
|
||||||
if (mi.Button == MouseButtons.Left && mi.Event == MouseInputEvent.Up)
|
if (mi.Button == MouseButtons.Left && mi.Event == MouseInputEvent.Up)
|
||||||
|
{
|
||||||
if (dragStart.HasValue && !(dragStart.Value == GetWorldPos(mi)))
|
if (dragStart.HasValue && !(dragStart.Value == GetWorldPos(mi)))
|
||||||
{
|
{
|
||||||
/* finalize drag selection */
|
/* finalize drag selection */
|
||||||
@@ -50,6 +51,9 @@ namespace OpenRa.Game
|
|||||||
/* finalize click selection */
|
/* finalize click selection */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dragStart = dragEnd = null;
|
||||||
|
}
|
||||||
|
|
||||||
if (mi.Button == MouseButtons.None && mi.Event == MouseInputEvent.Move)
|
if (mi.Button == MouseButtons.None && mi.Event == MouseInputEvent.Move)
|
||||||
{
|
{
|
||||||
/* update the cursor to reflect the thing under us - note this
|
/* update the cursor to reflect the thing under us - note this
|
||||||
|
|||||||
Reference in New Issue
Block a user