diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 9 | ||||
-rw-r--r-- | OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 3a28d42..bf2db58 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -3886,6 +3886,15 @@ namespace OpenSim.Region.Framework.Scenes | |||
3886 | 3886 | ||
3887 | public bool TestLandRestrictions(UUID agentID, out string reason, ref float posX, ref float posY) | 3887 | public bool TestLandRestrictions(UUID agentID, out string reason, ref float posX, ref float posY) |
3888 | { | 3888 | { |
3889 | if (posX < 0) | ||
3890 | posX = 0; | ||
3891 | else if (posX >= 256) | ||
3892 | posX = 255.999f; | ||
3893 | if (posY < 0) | ||
3894 | posY = 0; | ||
3895 | else if (posY >= 256) | ||
3896 | posY = 255.999f; | ||
3897 | |||
3889 | reason = String.Empty; | 3898 | reason = String.Empty; |
3890 | if (Permissions.IsGod(agentID)) | 3899 | if (Permissions.IsGod(agentID)) |
3891 | return true; | 3900 | return true; |
diff --git a/OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs b/OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs index cd93386..e1c2243 100644 --- a/OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs +++ b/OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs | |||
@@ -86,6 +86,7 @@ namespace OpenSim.Services.Connectors.Simulation | |||
86 | reason = String.Empty; | 86 | reason = String.Empty; |
87 | if (destination == null) | 87 | if (destination == null) |
88 | { | 88 | { |
89 | reason = "Destination not found"; | ||
89 | m_log.Debug("[REMOTE SIMULATION CONNECTOR]: Given destination is null"); | 90 | m_log.Debug("[REMOTE SIMULATION CONNECTOR]: Given destination is null"); |
90 | return false; | 91 | return false; |
91 | } | 92 | } |