remove a 256m check
parent
512c892d83
commit
f6a59f74ab
|
@ -2913,6 +2913,15 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
return sp;
|
return sp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public string GetAgentHomeURI(UUID agentID)
|
||||||
|
{
|
||||||
|
AgentCircuitData circuit = AuthenticateHandler.GetAgentCircuitData(agentID);
|
||||||
|
if (circuit != null && circuit.ServiceURLs != null && circuit.ServiceURLs.ContainsKey("HomeURI"))
|
||||||
|
return circuit.ServiceURLs["HomeURI"].ToString();
|
||||||
|
else
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Cache the user name for later use.
|
/// Cache the user name for later use.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -4028,12 +4037,12 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
{
|
{
|
||||||
if (posX < 0)
|
if (posX < 0)
|
||||||
posX = 0;
|
posX = 0;
|
||||||
else if (posX >= 256)
|
else if (posX >= RegionInfo.RegionSizeX)
|
||||||
posX = 255.999f;
|
posX = RegionInfo.RegionSizeX - 0.5f;
|
||||||
if (posY < 0)
|
if (posY < 0)
|
||||||
posY = 0;
|
posY = 0;
|
||||||
else if (posY >= 256)
|
else if (posY >= RegionInfo.RegionSizeY)
|
||||||
posY = 255.999f;
|
posY = RegionInfo.RegionSizeY - 0.5f;
|
||||||
|
|
||||||
reason = String.Empty;
|
reason = String.Empty;
|
||||||
if (Permissions.IsGod(agentID))
|
if (Permissions.IsGod(agentID))
|
||||||
|
|
Loading…
Reference in New Issue