forced still bad
parent
bcacd2ff21
commit
29bf9522e2
|
@ -6569,8 +6569,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
if(allowenvovr)
|
||||
{
|
||||
ScenePresence sp = SceneAgent as ScenePresence;
|
||||
if(sp != null && sp .EnvironmentVersion > 0)
|
||||
envVersion = sp.EnvironmentVersion;
|
||||
if(sp != null && sp.EnvironmentVersion > 0)
|
||||
envVersion = -1;
|
||||
else
|
||||
envVersion = landData.EnvironmentVersion;
|
||||
}
|
||||
|
|
|
@ -296,16 +296,15 @@ namespace OpenSim.Region.CoreModules.World.LightShare
|
|||
if ((vflags & 0x8000) != 0)
|
||||
{
|
||||
ScenePresence sp = isp as ScenePresence;
|
||||
if(sp.Environment != null)
|
||||
m_estateModule.HandleRegionInfoRequest(client);
|
||||
else
|
||||
ILandObject lo = m_scene.LandChannel.GetLandObject(sp.AbsolutePosition.X, sp.AbsolutePosition.Y);
|
||||
if (lo != null && lo.LandData != null && lo.LandData.Environment != null)
|
||||
{
|
||||
ILandObject lo = m_scene.LandChannel.GetLandObject(sp.AbsolutePosition.X, sp.AbsolutePosition.Y);
|
||||
if (lo != null && lo.LandData != null && lo.LandData.Environment != null)
|
||||
lo.SendLandUpdateToClient(client);
|
||||
else
|
||||
lo.SendLandUpdateToClient(client);
|
||||
if (sp.Environment != null)
|
||||
m_estateModule.HandleRegionInfoRequest(client);
|
||||
}
|
||||
else
|
||||
m_estateModule.HandleRegionInfoRequest(client);
|
||||
}
|
||||
|
||||
else if ((vflags & 0x4000) != 0)
|
||||
|
@ -468,9 +467,7 @@ namespace OpenSim.Region.CoreModules.World.LightShare
|
|||
ScenePresence sp = m_scene.GetScenePresence(agentID);
|
||||
|
||||
if(sp != null && sp.Environment != null)
|
||||
{
|
||||
VEnv = sp.Environment;
|
||||
}
|
||||
else if (parcelid == -1)
|
||||
VEnv = GetRegionEnvironment();
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue