block writing in shell when disabled
This commit is contained in:
parent
1be61d665e
commit
74aa44a259
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user