Refactored and simplified lua stuff a lot.
This commit is contained in:
@@ -45,5 +45,5 @@ int moduleMapLoad(lua_State *L) {
|
||||
void moduleMapSystem(scriptcontext_t *context) {
|
||||
assertNotNull(context, "Script context cannot be NULL");
|
||||
|
||||
scriptContextRegFunc(context, "mapLoad", moduleMapLoad);
|
||||
lua_register(context->luaState, "mapLoad", moduleMapLoad);
|
||||
}
|
||||
Reference in New Issue
Block a user