From 525b8a4de3bb17b11b7d62df1beef8e12e37ddf5 Mon Sep 17 00:00:00 2001 From: Joakim Kilby Date: Tue, 17 Feb 2015 12:00:19 +0100 Subject: [PATCH] LUA consola now queues scripts instead of runnings them --- src/interaction/luaconsole.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/interaction/luaconsole.cpp b/src/interaction/luaconsole.cpp index 9fb510221c..f6912f7d92 100644 --- a/src/interaction/luaconsole.cpp +++ b/src/interaction/luaconsole.cpp @@ -217,7 +217,8 @@ void LuaConsole::keyboardCallback(int key, int action) { // ENTER == run lua script else { if (_commands.at(_activeCommand) != "") { - OsEng.scriptEngine().runScript(_commands.at(_activeCommand)); + //OsEng.scriptEngine().runScript(_commands.at(_activeCommand)); + OsEng.scriptEngine().queueScript(_commands.at(_activeCommand)); if (!_commandsHistory.empty() && _commands.at(_activeCommand) != _commandsHistory.at(_commandsHistory.size() - 1)) _commandsHistory.push_back(_commands.at(_activeCommand));