summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-06-21 02:23:08 (GMT)
committer jacob1 <jfu614@gmail.com>2013-06-21 02:23:08 (GMT)
commit18e2008b01e403dbd0003ca3bb2fd3b6e72362a6 (patch)
treeb2586d2efe876aed7c58e87e6f1d66b1a5b83b19 /src
parent7a2114bc653cb450e58e59af9b8a5469d45ec140 (diff)
downloadpowder-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')
-rw-r--r--src/gui/game/GameController.cpp1
-rw-r--r--src/gui/game/GameView.cpp1
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)