Take snapshot when using ctrl+x
This commit is contained in:
parent
48d1226f59
commit
076be894d1
@ -549,6 +549,7 @@ void GameController::CopyRegion(ui::Point point1, ui::Point point2)
|
|||||||
void GameController::CutRegion(ui::Point point1, ui::Point point2)
|
void GameController::CutRegion(ui::Point point1, ui::Point point2)
|
||||||
{
|
{
|
||||||
CopyRegion(point1, point2);
|
CopyRegion(point1, point2);
|
||||||
|
HistorySnapshot();
|
||||||
gameModel->GetSimulation()->clear_area(point1.X, point1.Y, point2.X-point1.X, point2.Y-point1.Y);
|
gameModel->GetSimulation()->clear_area(point1.X, point1.Y, point2.X-point1.X, point2.Y-point1.Y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user