[Add] Allow Lua booleans in conf booleans.
This commit is contained in:
parent
a2a39158ac
commit
996be96757
@ -31,10 +31,12 @@
|
||||
|
||||
#define conf_loadBool(n,b) \
|
||||
lua_getglobal(L,n); \
|
||||
if(lua_isnumber(L, -1)) \
|
||||
if((int)lua_tonumber(L, -1) == 1) { \
|
||||
if(lua_isnumber(L, -1)) { \
|
||||
if((int)lua_tonumber(L, -1) == 1) \
|
||||
b = 1; \
|
||||
} \
|
||||
else if(lua_isboolean(L, -1)) \
|
||||
b = lua_toboolean(L, -1); \
|
||||
lua_remove(L, -1); \
|
||||
|
||||
#define conf_loadString(n,s) \
|
||||
|
Loading…
Reference in New Issue
Block a user