summaryrefslogtreecommitdiff
path: root/src/gui/game/GameController.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/game/GameController.cpp')
-rw-r--r--src/gui/game/GameController.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/game/GameController.cpp b/src/gui/game/GameController.cpp
index f4ad0b2..488d30a 100644
--- a/src/gui/game/GameController.cpp
+++ b/src/gui/game/GameController.cpp
@@ -588,7 +588,7 @@ bool GameController::MouseUp(int x, int y, unsigned button)
if (tempSaveID)
{
if ((*iter).text.c_str()[1] == 'c')
- OpenSavePreview(tempSaveID, 0);
+ OpenSavePreview(tempSaveID, 0, false);
else if ((*iter).text.c_str()[1] == 't')
{
char url[256];
@@ -1096,9 +1096,9 @@ void GameController::LoadSave(SaveInfo * save)
gameModel->SetSave(save);
}
-void GameController::OpenSavePreview(int saveID, int saveDate)
+void GameController::OpenSavePreview(int saveID, int saveDate, bool instant)
{
- activePreview = new PreviewController(saveID, saveDate, new SaveOpenCallback(this));
+ activePreview = new PreviewController(saveID, saveDate, instant, new SaveOpenCallback(this));
ui::Engine::Ref().ShowWindow(activePreview->GetView());
}
@@ -1106,7 +1106,7 @@ void GameController::OpenSavePreview()
{
if(gameModel->GetSave())
{
- activePreview = new PreviewController(gameModel->GetSave()->GetID(), new SaveOpenCallback(this));
+ activePreview = new PreviewController(gameModel->GetSave()->GetID(), false, new SaveOpenCallback(this));
ui::Engine::Ref().ShowWindow(activePreview->GetView());
}
}