Show trigger messages only in debug mode
This commit is contained in:
parent
842e9d832e
commit
c173e9c9aa
1 changed files with 2 additions and 0 deletions
|
@ -557,7 +557,9 @@ static int CclAddTrigger(lua_State *l)
|
|||
lua_gettable(l, LUA_GLOBALSINDEX);
|
||||
|
||||
if (lua_isnil(l, -1)) {
|
||||
#ifdef DEBUG
|
||||
puts("Trigger not set, defining trigger");
|
||||
#endif
|
||||
lua_pop(l, 1);
|
||||
lua_pushstring(l, "_triggers_");
|
||||
lua_newtable(l);
|
||||
|
|
Loading…
Add table
Reference in a new issue