From 18e2008b01e403dbd0003ca3bb2fd3b6e72362a6 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Thu, 20 Jun 2013 22:23:08 -0400 Subject: [PATCH] do ctrl+z snapshots when loading saves / stamps, makes it more predictable to fix problems in issue #110 --- src/gui/game/GameController.cpp | 1 + src/gui/game/GameView.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/gui/game/GameController.cpp b/src/gui/game/GameController.cpp index 0b0c4d6da..852a43329 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 6746de63d..f58039e9f 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)