From 07d15643c262524be780ba346fcb45cb7b2fbeb7 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Fri, 11 Mar 2022 17:56:10 -0500 Subject: [PATCH] GUI: implement paste flood --- src/gui/gui.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 1cc6165c0..657aa9e4a 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -3014,6 +3014,10 @@ void FurnaceGUI::doPaste(PasteMode mode) { break; } j++; + + if (mode==GUI_PASTE_MODE_FLOOD && i==data.size()-1) { + i=1; + } } makeUndo(GUI_UNDO_PATTERN_PASTE);