Take snapshot when using ctrl+x

This commit is contained in:
jacob1 2021-05-30 19:45:31 -04:00
parent 48d1226f59
commit 076be894d1
No known key found for this signature in database
GPG Key ID: 4E58A32D510E1995

View File

@ -549,6 +549,7 @@ void GameController::CopyRegion(ui::Point point1, ui::Point point2)
void GameController::CutRegion(ui::Point point1, ui::Point point2)
{
CopyRegion(point1, point2);
HistorySnapshot();
gameModel->GetSimulation()->clear_area(point1.X, point1.Y, point2.X-point1.X, point2.Y-point1.Y);
}