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.
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user