From 024beacafb5367b28359bb186aadf378a307ced2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sat, 21 Aug 2021 19:55:16 +0200 Subject: [PATCH] Don't smear the paste while moving the mouse. --- OpenRA.Mods.Common/EditorBrushes/EditorCopyPasteBrush.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OpenRA.Mods.Common/EditorBrushes/EditorCopyPasteBrush.cs b/OpenRA.Mods.Common/EditorBrushes/EditorCopyPasteBrush.cs index 230185a7be..c16f460242 100644 --- a/OpenRA.Mods.Common/EditorBrushes/EditorCopyPasteBrush.cs +++ b/OpenRA.Mods.Common/EditorBrushes/EditorCopyPasteBrush.cs @@ -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);