diff options
author | krzys-h <krzys_h@interia.pl> | 2013-12-31 12:58:45 +0100 |
---|---|---|
committer | krzys-h <krzys_h@interia.pl> | 2013-12-31 13:24:09 +0100 |
commit | 4a237f5925eb0d371e097416b17dd5e919cd2258 (patch) | |
tree | 9ce5e9347d0e0a655b247c530c8264581f19036a /src/ui/maindialog.cpp | |
parent | 3536f1c7cc52792a7d833b4f823aa515dc00d933 (diff) | |
download | colobot-4a237f5925eb0d371e097416b17dd5e919cd2258.tar.gz colobot-4a237f5925eb0d371e097416b17dd5e919cd2258.tar.bz2 colobot-4a237f5925eb0d371e097416b17dd5e919cd2258.zip |
CPauseManager
Diffstat (limited to 'src/ui/maindialog.cpp')
-rw-r--r-- | src/ui/maindialog.cpp | 7 |
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(); |