summaryrefslogtreecommitdiffstats
path: root/src/ui/maindialog.cpp
diff options
context:
space:
mode:
authorkrzys-h <krzys_h@interia.pl>2013-12-31 12:58:45 +0100
committerkrzys-h <krzys_h@interia.pl>2013-12-31 13:24:09 +0100
commit4a237f5925eb0d371e097416b17dd5e919cd2258 (patch)
tree9ce5e9347d0e0a655b247c530c8264581f19036a /src/ui/maindialog.cpp
parent3536f1c7cc52792a7d833b4f823aa515dc00d933 (diff)
downloadcolobot-4a237f5925eb0d371e097416b17dd5e919cd2258.tar.gz
colobot-4a237f5925eb0d371e097416b17dd5e919cd2258.tar.bz2
colobot-4a237f5925eb0d371e097416b17dd5e919cd2258.zip
CPauseManager
Diffstat (limited to 'src/ui/maindialog.cpp')
-rw-r--r--src/ui/maindialog.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ui/maindialog.cpp b/src/ui/maindialog.cpp
index f3eca3a..b954c71 100644
--- a/src/ui/maindialog.cpp
+++ b/src/ui/maindialog.cpp
@@ -120,6 +120,7 @@ CMainDialog::CMainDialog()
m_camera = m_main->GetCamera();
m_engine = Gfx::CEngine::GetInstancePointer();
m_particle = m_engine->GetParticle();
+ m_pause = CPauseManager::GetInstancePointer();
m_phase = PHASE_NAME;
m_phaseSetup = PHASE_SETUPg;
@@ -6401,8 +6402,8 @@ void CMainDialog::StartSuspend()
{
m_sound->MuteAll(true);
m_main->ClearInterface();
- m_bInitPause = m_engine->GetPause();
- m_engine->SetPause(true);
+ m_bInitPause = m_pause->GetPauseType();
+ m_pause->SetPause(PAUSE_DIALOG);
m_engine->SetOverFront(false); // over flat behind
m_main->CreateShortcuts();
m_main->StartSuspend();
@@ -6416,7 +6417,7 @@ void CMainDialog::StopSuspend()
{
m_sound->MuteAll(false);
m_main->ClearInterface();
- if ( !m_bInitPause ) m_engine->SetPause(false);
+ m_pause->SetPause(m_bInitPause);
m_engine->SetOverFront(true); // over flat front
m_main->CreateShortcuts();
m_main->StopSuspend();