Don't smear the paste while moving the mouse.

This commit is contained in:
Matthias Mailänder
2021-08-21 19:55:16 +02:00
committed by abcdefg30
parent b4256df9c1
commit 024beacafb

View File

@@ -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);