do ctrl+z snapshots when loading saves / stamps, makes it more predictable to fix problems in issue #110
This commit is contained in:
parent
7a2114bc65
commit
18e2008b01
@ -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