Compare commits

...

2 Commits

Author SHA1 Message Date
Melanie
3460319f1e Make sure the position of a loggin-in agent is within region boundaries since
out of bounds positions cause a rejection of the login.
2012-08-03 02:20:57 +02:00
Melanie
d58743ddc1 Add a reason message for a code path that lacks one 2012-08-03 01:30:05 +02:00
2 changed files with 10 additions and 0 deletions

View File

@@ -3886,6 +3886,15 @@ namespace OpenSim.Region.Framework.Scenes
public bool TestLandRestrictions(UUID agentID, out string reason, ref float posX, ref float posY)
{
if (posX < 0)
posX = 0;
else if (posX >= 256)
posX = 255.999f;
if (posY < 0)
posY = 0;
else if (posY >= 256)
posY = 255.999f;
reason = String.Empty;
if (Permissions.IsGod(agentID))
return true;

View File

@@ -86,6 +86,7 @@ namespace OpenSim.Services.Connectors.Simulation
reason = String.Empty;
if (destination == null)
{
reason = "Destination not found";
m_log.Debug("[REMOTE SIMULATION CONNECTOR]: Given destination is null");
return false;
}