mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-11 19:04:05 +02:00
take ctrl+z snapshot before placing a stamp, not after
This commit is contained in:
@@ -285,9 +285,9 @@ void GameController::PlaceSave(ui::Point position)
|
|||||||
{
|
{
|
||||||
if (gameModel->GetPlaceSave())
|
if (gameModel->GetPlaceSave())
|
||||||
{
|
{
|
||||||
|
HistorySnapshot();
|
||||||
gameModel->GetSimulation()->Load(position.X, position.Y, gameModel->GetPlaceSave());
|
gameModel->GetSimulation()->Load(position.X, position.Y, gameModel->GetPlaceSave());
|
||||||
gameModel->SetPaused(gameModel->GetPlaceSave()->paused | gameModel->GetPaused());
|
gameModel->SetPaused(gameModel->GetPlaceSave()->paused | gameModel->GetPaused());
|
||||||
HistorySnapshot();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user