From fe39b5d6c7e6ae79bb3fe1955a80de52b416e7b2 Mon Sep 17 00:00:00 2001 From: Guilherme Medeiros Date: Sun, 21 Jan 2018 00:00:03 -0300 Subject: [PATCH] Fix flipping a selection than trying to move it After flipping a selection, when we try to move it, TIC-80 was getting the previous seleciton back and then moving it. --- src/sprite.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sprite.c b/src/sprite.c index cb7a2f8..645e417 100644 --- a/src/sprite.c +++ b/src/sprite.c @@ -548,6 +548,7 @@ static void flipCanvasHorz(Sprite* sprite) } history_add(sprite->history); + copySelection(sprite); } static void flipCanvasVert(Sprite* sprite) @@ -569,6 +570,7 @@ static void flipCanvasVert(Sprite* sprite) } history_add(sprite->history); + copySelection(sprite); } static void drawMoveButtons(Sprite* sprite)