mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-22 02:42:20 +00:00
Expose chat_on to Lua as chatactive
This commit is contained in:
parent
106a98ce5c
commit
efb1b491aa
1 changed files with 5 additions and 0 deletions
|
@ -38,6 +38,8 @@
|
|||
#include "doomstat.h"
|
||||
#include "g_state.h"
|
||||
|
||||
#include "hu_stuff.h"
|
||||
|
||||
lua_State *gL = NULL;
|
||||
|
||||
// List of internal libraries to load from SRB2
|
||||
|
@ -432,6 +434,9 @@ int LUA_PushGlobals(lua_State *L, const char *word)
|
|||
return 0;
|
||||
LUA_PushUserdata(L, &camera2, META_CAMERA);
|
||||
return 1;
|
||||
} else if (fastcmp(word, "chatactive")) {
|
||||
lua_pushboolean(L, chat_on);
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue