From 956efb1feb7767c2845c8d6d241f036c179f6adf Mon Sep 17 00:00:00 2001 From: erihel Date: Sat, 23 Mar 2013 20:33:14 +0100 Subject: * Blocked cheat input in SatCom, intro movie and while editing cbot (issue #130) --- src/object/robotmain.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/object/robotmain.cpp') diff --git a/src/object/robotmain.cpp b/src/object/robotmain.cpp index b3f269c..55a9b86 100644 --- a/src/object/robotmain.cpp +++ b/src/object/robotmain.cpp @@ -1331,6 +1331,7 @@ bool CRobotMain::EventProcess(Event &event) // Management of the console. if (m_phase != PHASE_NAME && !m_movie->IsExist() && + !m_movieLock && !m_editLock && event.type == EVENT_KEY_DOWN && event.key.key == KEY(PAUSE)) // Pause ? { @@ -2090,6 +2091,8 @@ void CRobotMain::StartDisplayInfo(const char *filename, int index) //! End of displaying of instructions void CRobotMain::StopDisplayInfo() { + if (m_cmdEdit) return; + if (m_movieInfoIndex != -1) // film to read the SatCom? m_movie->Start(MM_SATCOMclose, 2.0f); -- cgit v1.2.3-1-g7c22