1
0
mirror of https://github.com/The-Powder-Toy/The-Powder-Toy.git synced 2025-03-31 12:33:00 +02:00

take ctrl+z snapshot before placing a stamp, not after

This commit is contained in:
jacob1 2016-07-26 19:08:46 -04:00
parent 4f8f97d04b
commit 647ad902fa

@ -283,11 +283,11 @@ sign * GameController::GetSignAt(int x, int y)
void GameController::PlaceSave(ui::Point position)
{
if(gameModel->GetPlaceSave())
if (gameModel->GetPlaceSave())
{
HistorySnapshot();
gameModel->GetSimulation()->Load(position.X, position.Y, gameModel->GetPlaceSave());
gameModel->SetPaused(gameModel->GetPlaceSave()->paused | gameModel->GetPaused());
HistorySnapshot();
}
}