Don't smear the paste while moving the mouse.
This commit is contained in:
committed by
abcdefg30
parent
b4256df9c1
commit
024beacafb
@@ -92,6 +92,8 @@ namespace OpenRA.Mods.Common.Widgets
|
||||
break;
|
||||
case State.Paste:
|
||||
{
|
||||
if (mi.Event != MouseInputEvent.Down)
|
||||
break;
|
||||
var gridType = worldRenderer.World.Map.Grid.Type;
|
||||
var source = CellRegion.BoundingRegion(gridType, new[] { start, end });
|
||||
Copy(source, cell - end);
|
||||
|
||||
Reference in New Issue
Block a user