Lots of work on debugging diff xmit
This commit is contained in:
@@ -182,6 +182,18 @@ LuaDefine(world_wait, "f") {
|
||||
return lua_yield(L, 1);
|
||||
}
|
||||
|
||||
LuaDefine(tangible_nopredict, "c") {
|
||||
if (lua_gettop(L) != 0) {
|
||||
luaL_error(L, "tangible.nopredict takes no arguments");
|
||||
}
|
||||
World *w = World::fetch_global_pointer(L);
|
||||
if (util::world_type_authoritative(w->world_type_)) {
|
||||
return 0;
|
||||
} else {
|
||||
return lua_yield(L, 0);
|
||||
}
|
||||
}
|
||||
|
||||
LuaDefine(world_getregistry, "f") {
|
||||
lua_pushvalue(L, LUA_REGISTRYINDEX);
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user