Merge branch 'master' into ubitworkmaster

avinationmerge
UbitUmarov 2014-08-05 19:28:56 +01:00
commit 31b5a587a4
1 changed files with 17 additions and 13 deletions

View File

@ -2271,19 +2271,23 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
if (scene == null)
return;
if (grp.RootPart.DIE_AT_EDGE)
{
// We remove the object here
try
{
scene.DeleteSceneObject(grp, false);
}
catch (Exception)
{
m_log.Warn("[DATABASE]: exception when trying to remove the prim that crossed the border.");
}
return;
}
// http://wiki.secondlife.com/wiki/STATUS_DIE_AT_EDGE
// DieAtEdge does NOT mean that objects can't cross regions.
// It just means they die when they go off world, unless
// RETURN_AT_EDGE is set.
// if (grp.RootPart.DIE_AT_EDGE)
// {
// // We remove the object here
// try
// {
// scene.DeleteSceneObject(grp, false);
// }
// catch (Exception)
// {
// m_log.Warn("[DATABASE]: exception when trying to remove the prim that crossed the border.");
// }
// return;
// }
int thisx = (int)scene.RegionInfo.RegionLocX;
int thisy = (int)scene.RegionInfo.RegionLocY;