From 74aa44a2595d630ca1fb420702b2130d708c958c Mon Sep 17 00:00:00 2001 From: Lendemor Date: Fri, 20 Jan 2017 16:02:54 +0100 Subject: [PATCH] block writing in shell when disabled --- src/sparrowshell/sparrowshell.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sparrowshell/sparrowshell.cpp b/src/sparrowshell/sparrowshell.cpp index 5c16f0b..f0ffbad 100644 --- a/src/sparrowshell/sparrowshell.cpp +++ b/src/sparrowshell/sparrowshell.cpp @@ -136,6 +136,8 @@ void SparrowShell::update() void SparrowShell::updateTextInput() { + if (!m_shellEnabled) + return; std::string text = getEngine().getInput()->getText(); for(unsigned int i = 0 ; i < text.length() ; i++){ char c = text[i]; @@ -147,7 +149,6 @@ void SparrowShell::updateTextInput() case 13: if (m_input_string != ""){ out(m_input_string); - //DIMITRI : Take m_input_string here and send it to LUA :D m_script->execute(m_input_string); } m_input_string.clear();