diff options
| author | jacob1 <jfu614@gmail.com> | 2013-06-21 02:23:08 (GMT) |
|---|---|---|
| committer | jacob1 <jfu614@gmail.com> | 2013-06-21 02:23:08 (GMT) |
| commit | 18e2008b01e403dbd0003ca3bb2fd3b6e72362a6 (patch) | |
| tree | b2586d2efe876aed7c58e87e6f1d66b1a5b83b19 /src/gui/game | |
| parent | 7a2114bc653cb450e58e59af9b8a5469d45ec140 (diff) | |
| download | powder-18e2008b01e403dbd0003ca3bb2fd3b6e72362a6.zip powder-18e2008b01e403dbd0003ca3bb2fd3b6e72362a6.tar.gz | |
do ctrl+z snapshots when loading saves / stamps, makes it more predictable to fix problems in issue #110
Diffstat (limited to 'src/gui/game')
| -rw-r--r-- | src/gui/game/GameController.cpp | 1 | ||||
| -rw-r--r-- | src/gui/game/GameView.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/game/GameController.cpp b/src/gui/game/GameController.cpp index 0b0c4d6..852a433 100644 --- a/src/gui/game/GameController.cpp +++ b/src/gui/game/GameController.cpp @@ -271,6 +271,7 @@ void GameController::PlaceSave(ui::Point position) { gameModel->GetSimulation()->Load(position.X, position.Y, gameModel->GetPlaceSave()); gameModel->SetPaused(gameModel->GetPlaceSave()->paused | gameModel->GetPaused()); + HistorySnapshot(); } } diff --git a/src/gui/game/GameView.cpp b/src/gui/game/GameView.cpp index 6746de6..f58039e 100644 --- a/src/gui/game/GameView.cpp +++ b/src/gui/game/GameView.cpp @@ -953,6 +953,7 @@ void GameView::NotifySaveChanged(GameModel * sender) tagSimulationButton->SetText("[no tags set]"); currentSaveType = 0; } + c->HistorySnapshot(); } void GameView::NotifyBrushChanged(GameModel * sender) |
