diff options
Diffstat (limited to 'src/universe.cpp')
-rw-r--r-- | src/universe.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/universe.cpp b/src/universe.cpp index 89ad02a..335f056 100644 --- a/src/universe.cpp +++ b/src/universe.cpp | |||
@@ -153,6 +153,14 @@ Universe* Universe::Create(lua_State* const L_) | |||
153 | lua_setmetatable(L_, -2); // L_: settings universe | 153 | lua_setmetatable(L_, -2); // L_: settings universe |
154 | lua_pop(L_, 1); // L_: settings | 154 | lua_pop(L_, 1); // L_: settings |
155 | 155 | ||
156 | std::ignore = luaG_getfield(L_, kIdxSettings, "linda_wake_period"); // L_: settings linda_wake_period | ||
157 | if (luaG_type(L_, kIdxTop) == LuaType::NUMBER) { | ||
158 | _U->lindaWakePeriod = lua_Duration{ lua_tonumber(L_, kIdxTop) }; | ||
159 | } else { | ||
160 | LUA_ASSERT(L_, luaG_tostring(L_, kIdxTop) == "never"); | ||
161 | } | ||
162 | lua_pop(L_, 1); // L_: settings | ||
163 | |||
156 | std::ignore = luaG_getfield(L_, kIdxSettings, "strip_functions"); // L_: settings strip_functions | 164 | std::ignore = luaG_getfield(L_, kIdxSettings, "strip_functions"); // L_: settings strip_functions |
157 | _U->stripFunctions = lua_toboolean(L_, -1) ? true : false; | 165 | _U->stripFunctions = lua_toboolean(L_, -1) ? true : false; |
158 | lua_pop(L_, 1); // L_: settings | 166 | lua_pop(L_, 1); // L_: settings |