mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
fix permissions checks on some crossings
This commit is contained in:
@@ -1114,8 +1114,7 @@ namespace OpenSim.Framework
|
||||
{
|
||||
if (resp.ContentLength != 0)
|
||||
{
|
||||
using (Stream respStream = resp.GetResponseStream())
|
||||
using (StreamReader reader = new StreamReader(respStream))
|
||||
using (StreamReader reader = new StreamReader(resp.GetResponseStream()))
|
||||
respstring = reader.ReadToEnd();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1874,7 +1874,7 @@ namespace OpenSim.Region.CoreModules.World.Permissions
|
||||
return false;
|
||||
|
||||
Vector3 pos = sog.AbsolutePosition;
|
||||
ILandObject parcel = m_scene.LandChannel.GetLandObject(pos.X, pos.Y);
|
||||
ILandObject parcel = m_scene.LandChannel.GetLandObjectClipedXY(pos.X, pos.Y);
|
||||
if (parcel == null)
|
||||
return false;
|
||||
|
||||
@@ -2080,16 +2080,7 @@ namespace OpenSim.Region.CoreModules.World.Permissions
|
||||
parcel = m_scene.LandChannel.GetLandObject(id);
|
||||
else
|
||||
{
|
||||
if (X < 0)
|
||||
X = 0;
|
||||
else if (X > ((int)m_scene.RegionInfo.RegionSizeX - 1))
|
||||
X = ((int)m_scene.RegionInfo.RegionSizeX - 1);
|
||||
if (Y < 0)
|
||||
Y = 0;
|
||||
else if (Y > ((int)m_scene.RegionInfo.RegionSizeY - 1))
|
||||
Y = ((int)m_scene.RegionInfo.RegionSizeY - 1);
|
||||
|
||||
parcel = m_scene.LandChannel.GetLandObject(X, Y);
|
||||
parcel = m_scene.LandChannel.GetLandObjectClipedXY(X, Y);
|
||||
}
|
||||
|
||||
if (parcel == null)
|
||||
|
||||
Reference in New Issue
Block a user