take ctrl+z snapshot before placing a stamp, not after
This commit is contained in:
parent
4f8f97d04b
commit
647ad902fa
@ -283,11 +283,11 @@ sign * GameController::GetSignAt(int x, int y)
|
|||||||
|
|
||||||
void GameController::PlaceSave(ui::Point position)
|
void GameController::PlaceSave(ui::Point position)
|
||||||
{
|
{
|
||||||
if(gameModel->GetPlaceSave())
|
if (gameModel->GetPlaceSave())
|
||||||
{
|
{
|
||||||
|
HistorySnapshot();
|
||||||
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();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user