From 1fc9186aaf9fa4e45a89a55a989fe21df3e26f3a Mon Sep 17 00:00:00 2001 From: tomangelo2 Date: Tue, 9 Feb 2016 20:05:04 +0100 Subject: [PATCH] Fixes for issue #648 and #631 --- src/level/robotmain.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/level/robotmain.cpp b/src/level/robotmain.cpp index 99886f4a..9214c511 100644 --- a/src/level/robotmain.cpp +++ b/src/level/robotmain.cpp @@ -459,6 +459,7 @@ void CRobotMain::ChangePhase(Phase phase) m_interface->Flush(); FlushNewScriptName(); m_sound->SetListener(Math::Vector(0.0f, 0.0f, 0.0f), Math::Vector(0.0f, 0.0f, 1.0f)); + m_sound->StopAll(); m_camera->SetType(Gfx::CAM_TYPE_DIALOG); m_movie->Flush(); m_movieInfoIndex = -1; @@ -707,8 +708,8 @@ bool CRobotMain::ProcessEvent(Event &event) } // Management of the console. - if (event.type == EVENT_KEY_DOWN && - event.GetData()->key == KEY(BACKQUOTE)) // Pause ? + if (event.type == EVENT_TEXT_INPUT && + event.GetData()->text[0] == KEY(BACKQUOTE)) // Pause ? { if (m_phase != PHASE_PLAYER_SELECT && !m_movie->IsExist() &&