More work on the login system, especially 'tangible.redirect'

This commit is contained in:
2021-03-30 19:30:58 -04:00
parent aa7de03c57
commit 8c149cf2ee
6 changed files with 40 additions and 10 deletions

View File

@@ -24,6 +24,10 @@ LuaFunctionReg::List LuaFunctionReg::all() {
LuaFunctionReg *LuaFunctionReg::LuaFunctionRegistry;
bool LuaStack::ckboolean(LuaSlot s) const {
luaL_checktype(L_, s, LUA_TBOOLEAN);
return lua_toboolean(L_, s) ? true:false;
}
lua_Integer LuaStack::ckinteger(LuaSlot s) const {
luaL_checktype(L_, s, LUA_TNUMBER);