mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-27 01:26:30 +00:00
Fix r2ed
--HG-- branch : develop
This commit is contained in:
parent
07caf402c2
commit
84046c8db4
2 changed files with 10 additions and 2 deletions
|
@ -1132,7 +1132,7 @@ void CFarTP::disconnectFromPreviousShard()
|
||||||
*/
|
*/
|
||||||
NetMngr.reinit();
|
NetMngr.reinit();
|
||||||
|
|
||||||
if( !isReselectingChar() )
|
if (isIngame())
|
||||||
{
|
{
|
||||||
nlinfo("FarTP: calling EntitiesMngr.reinit()");
|
nlinfo("FarTP: calling EntitiesMngr.reinit()");
|
||||||
EntitiesMngr.reinit();
|
EntitiesMngr.reinit();
|
||||||
|
|
|
@ -238,7 +238,15 @@ void CComLuaModule::initLuaLib()
|
||||||
};
|
};
|
||||||
int initialStackSize = lua_gettop(_LuaState);
|
int initialStackSize = lua_gettop(_LuaState);
|
||||||
#if LUA_VERSION_NUM >= 502
|
#if LUA_VERSION_NUM >= 502
|
||||||
luaL_newlib(_LuaState, methods);
|
// luaL_newlib(_LuaState, methods);
|
||||||
|
// lua_setglobal(_LuaState, R2_LUA_PATH);
|
||||||
|
lua_getglobal(_LuaState, R2_LUA_PATH);
|
||||||
|
if (lua_isnil(_LuaState, -1))
|
||||||
|
{
|
||||||
|
lua_pop(_LuaState, 1);
|
||||||
|
lua_newtable(_LuaState);
|
||||||
|
}
|
||||||
|
luaL_setfuncs(_LuaState, methods, 0);
|
||||||
lua_setglobal(_LuaState, R2_LUA_PATH);
|
lua_setglobal(_LuaState, R2_LUA_PATH);
|
||||||
#else
|
#else
|
||||||
luaL_openlib(_LuaState, R2_LUA_PATH, methods, 0);
|
luaL_openlib(_LuaState, R2_LUA_PATH, methods, 0);
|
||||||
|
|
Loading…
Reference in a new issue