mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-28 18:29:49 +02:00
do ctrl+z snapshots when loading saves / stamps, makes it more predictable to fix problems in issue #110
This commit is contained in:
@@ -271,6 +271,7 @@ void GameController::PlaceSave(ui::Point position)
|
|||||||
{
|
{
|
||||||
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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -953,6 +953,7 @@ void GameView::NotifySaveChanged(GameModel * sender)
|
|||||||
tagSimulationButton->SetText("[no tags set]");
|
tagSimulationButton->SetText("[no tags set]");
|
||||||
currentSaveType = 0;
|
currentSaveType = 0;
|
||||||
}
|
}
|
||||||
|
c->HistorySnapshot();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GameView::NotifyBrushChanged(GameModel * sender)
|
void GameView::NotifyBrushChanged(GameModel * sender)
|
||||||
|
Reference in New Issue
Block a user