Skip to content

Commit

Permalink
Don't show the Lua Interpreter outside of debug mode (bug #24699)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Jun 21, 2016
1 parent c9f28e2 commit 4a9626c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gui/dialogs/lua_interpreter.cpp
Expand Up @@ -28,6 +28,7 @@
#include "gui/widgets/window.hpp"

#include "desktop/clipboard.hpp"
#include "game_config.hpp"
#include "game_errors.hpp"
#include "gettext.hpp"
#include "resources.hpp" //for help fetching lua kernel pointers
Expand Down Expand Up @@ -636,6 +637,10 @@ void tlua_interpreter::controller::search(int direction)

/** Display a new console, using given video and lua kernel */
void tlua_interpreter::display(CVideo& video, lua_kernel_base * lk) {
if(!game_config::debug) {
return;
}

if (!lk) {
ERR_LUA << "Tried to open console with a null lua kernel pointer.\n";
return;
Expand Down

0 comments on commit 4a9626c

Please sign in to comment.