aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes
diff options
context:
space:
mode:
authorMelanie2012-03-06 00:29:43 +0000
committerMelanie2012-03-06 00:29:43 +0000
commitaa613dab1f5f9f0f3f9fa50f0307da0cb6620b33 (patch)
tree8c666a42b4a53374590e5302b5faddf97c5c033d /OpenSim/Region/Framework/Scenes
parentMerge branch 'master' into careminster (diff)
parentAllow NPC to be removed by the owner of the parcel they're over. (diff)
downloadopensim-SC-aa613dab1f5f9f0f3f9fa50f0307da0cb6620b33.zip
opensim-SC-aa613dab1f5f9f0f3f9fa50f0307da0cb6620b33.tar.gz
opensim-SC-aa613dab1f5f9f0f3f9fa50f0307da0cb6620b33.tar.bz2
opensim-SC-aa613dab1f5f9f0f3f9fa50f0307da0cb6620b33.tar.xz
Merge branch 'master' of ssh://melanie@3dhosting.de/var/git/careminster into careminster
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs13
1 files changed, 10 insertions, 3 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index e675c73..4fc59e2 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -4923,9 +4923,16 @@ Environment.Exit(1);
4923 return nearestPoint.Value; 4923 return nearestPoint.Value;
4924 } 4924 }
4925 4925
4926 //Ultimate backup if we have no idea where they are 4926 ILandObject dest = LandChannel.GetLandObject(avatar.lastKnownAllowedPosition.X, avatar.lastKnownAllowedPosition.Y);
4927 Debug.WriteLine("Have no idea where they are, sending them to: " + avatar.lastKnownAllowedPosition.ToString()); 4927 if (dest != excludeParcel)
4928 return avatar.lastKnownAllowedPosition; 4928 {
4929 // Ultimate backup if we have no idea where they are and
4930 // the last allowed position was in another parcel
4931 Debug.WriteLine("Have no idea where they are, sending them to: " + avatar.lastKnownAllowedPosition.ToString());
4932 return avatar.lastKnownAllowedPosition;
4933 }
4934
4935 // else fall through to region edge
4929 } 4936 }
4930 4937
4931 //Go to the edge, this happens in teleporting to a region with no available parcels 4938 //Go to the edge, this happens in teleporting to a region with no available parcels