diff options
Diffstat (limited to 'src/universe.cpp')
-rw-r--r-- | src/universe.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/universe.cpp b/src/universe.cpp index 9ab6019..82522f1 100644 --- a/src/universe.cpp +++ b/src/universe.cpp | |||
@@ -107,7 +107,6 @@ Universe::Universe() | |||
107 | lua_setmetatable(L_, -2); // L_: settings universe | 107 | lua_setmetatable(L_, -2); // L_: settings universe |
108 | lua_pop(L_, 1); // L_: settings | 108 | lua_pop(L_, 1); // L_: settings |
109 | 109 | ||
110 | // TODO: write some tests to see what happens when we trigger errors in stripped mode | ||
111 | std::ignore = luaG_getfield(L_, 1, "strip_functions"); // L_: settings strip_functions | 110 | std::ignore = luaG_getfield(L_, 1, "strip_functions"); // L_: settings strip_functions |
112 | _U->stripFunctions = lua_toboolean(L_, -1) ? true : false; | 111 | _U->stripFunctions = lua_toboolean(L_, -1) ? true : false; |
113 | lua_pop(L_, 1); // L_: settings | 112 | lua_pop(L_, 1); // L_: settings |
@@ -115,9 +114,6 @@ Universe::Universe() | |||
115 | std::ignore = luaG_getfield(L_, 1, "verbose_errors"); // L_: settings verbose_errors | 114 | std::ignore = luaG_getfield(L_, 1, "verbose_errors"); // L_: settings verbose_errors |
116 | _U->verboseErrors = lua_toboolean(L_, -1) ? true : false; | 115 | _U->verboseErrors = lua_toboolean(L_, -1) ? true : false; |
117 | lua_pop(L_, 1); // L_: settings | 116 | lua_pop(L_, 1); // L_: settings |
118 | std::ignore = luaG_getfield(L_, 1, "demote_full_userdata"); // L_: settings demote_full_userdata | ||
119 | _U->demoteFullUserdata = lua_toboolean(L_, -1) ? true : false; | ||
120 | lua_pop(L_, 1); // L_: settings | ||
121 | 117 | ||
122 | // tracking | 118 | // tracking |
123 | std::ignore = luaG_getfield(L_, 1, "track_lanes"); // L_: settings track_lanes | 119 | std::ignore = luaG_getfield(L_, 1, "track_lanes"); // L_: settings track_lanes |