aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index e344da3..7f1936e 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -2494,6 +2494,12 @@ namespace OpenSim.Region.Framework.Scenes
2494 2494
2495 if (!agent.child) 2495 if (!agent.child)
2496 { 2496 {
2497 if (agent.startpos.X > (int)Constants.RegionSize - 1)
2498 agent.startpos.X = (int)Constants.RegionSize - 1;
2499
2500 if (agent.startpos.Y > (int)Constants.RegionSize - 1)
2501 agent.startpos.Y = (int)Constants.RegionSize - 1;
2502
2497 // Honor parcel landing type and position. 2503 // Honor parcel landing type and position.
2498 ILandObject land = LandChannel.GetLandObject(agent.startpos.X, agent.startpos.Y); 2504 ILandObject land = LandChannel.GetLandObject(agent.startpos.X, agent.startpos.Y);
2499 if (land != null) 2505 if (land != null)