From 5478f357b62062ffccfecb4c7b5fc607f0e7a518 Mon Sep 17 00:00:00 2001 From: Alexander Date: Sun, 10 Feb 2019 18:10:14 -0500 Subject: Corrected networking examples changed the api for interacting with sockets, sockets now have a callback, `socket:receive(function(stream) ... end)`, which they can use to decide what to do when called. Sockets also have a block:recv() function, which will block EVERYTHING until the socket receives data. This should probably not be used. --- src/shared/lua_api/load_phys.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/shared/lua_api/load_phys.cpp') diff --git a/src/shared/lua_api/load_phys.cpp b/src/shared/lua_api/load_phys.cpp index 7580e99..db35f37 100644 --- a/src/shared/lua_api/load_phys.cpp +++ b/src/shared/lua_api/load_phys.cpp @@ -6,7 +6,8 @@ void load_physfuncs(lua_State* L){ lua_newtable(L);//{} - lua_setglobal(L,"phys"); + lua_setglobal(L,"phys");// + lua_getglobal(L,"phys"); set_const(L,BT_DISABLE_WORLD_GRAVITY); set_const(L,BT_ENABLE_GYROSCOPIC_FORCE_EXPLICIT); set_const(L,BT_ENABLE_GYROSCOPIC_FORCE_IMPLICIT_WORLD); -- cgit v1.2.3-70-g09d2