mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-12-19 16:07:11 +01:00
done with most important files comparison
This commit is contained in:
@@ -2796,8 +2796,7 @@ int LuaScriptInterface::luaGetWorldTime(lua_State* L)
|
||||
int LuaScriptInterface::luaGetWorldLight(lua_State* L)
|
||||
{
|
||||
//getWorldLight()
|
||||
LightInfo lightInfo;
|
||||
g_game.getWorldLightInfo(lightInfo);
|
||||
LightInfo lightInfo = g_game.getWorldLightInfo();
|
||||
lua_pushnumber(L, lightInfo.level);
|
||||
lua_pushnumber(L, lightInfo.color);
|
||||
return 2;
|
||||
@@ -6481,10 +6480,9 @@ int LuaScriptInterface::luaCreatureGetLight(lua_State* L)
|
||||
return 1;
|
||||
}
|
||||
|
||||
LightInfo light;
|
||||
creature->getCreatureLight(light);
|
||||
lua_pushnumber(L, light.level);
|
||||
lua_pushnumber(L, light.color);
|
||||
LightInfo lightInfo = creature->getCreatureLight();
|
||||
lua_pushnumber(L, lightInfo.level);
|
||||
lua_pushnumber(L, lightInfo.color);
|
||||
return 2;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user