Skip to content

Commit

Permalink
add macro to always have lua console available.
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgtdf committed Jun 21, 2016
1 parent fc586ea commit ff25170
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/dialogs/lua_interpreter.cpp
Expand Up @@ -637,10 +637,11 @@ 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) {
#ifndef ALWAYS_HAVE_LUA_CONSOLE
if(!game_config::debug) {
return;
}

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

0 comments on commit ff25170

Please sign in to comment.