This commit is contained in:
Chris Forbes
2009-10-06 23:46:52 +13:00
parent b0620dccb3
commit 803b18d9b5

View File

@@ -41,6 +41,7 @@ namespace OpenRa.Game
dragEnd = GetWorldPos(mi);
if (mi.Button == MouseButtons.Left && mi.Event == MouseInputEvent.Up)
{
if (dragStart.HasValue && !(dragStart.Value == GetWorldPos(mi)))
{
/* finalize drag selection */
@@ -50,6 +51,9 @@ namespace OpenRa.Game
/* finalize click selection */
}
dragStart = dragEnd = null;
}
if (mi.Button == MouseButtons.None && mi.Event == MouseInputEvent.Move)
{
/* update the cursor to reflect the thing under us - note this