diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index 9bd7632..c6b98ca 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |||
@@ -334,7 +334,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
334 | { | 334 | { |
335 | get | 335 | get |
336 | { | 336 | { |
337 | Vector3 minScale = new Vector3(Constants.RegionSize, Constants.RegionSize, Constants.RegionSize); | 337 | Vector3 minScale = new Vector3(Constants.MaximumRegionSize, Constants.MaximumRegionSize, Constants.MaximumRegionSize); |
338 | Vector3 maxScale = Vector3.Zero; | 338 | Vector3 maxScale = Vector3.Zero; |
339 | Vector3 finalScale = new Vector3(0.5f, 0.5f, 0.5f); | 339 | Vector3 finalScale = new Vector3(0.5f, 0.5f, 0.5f); |
340 | 340 | ||
@@ -466,8 +466,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
466 | && !IsAttachmentCheckFull() && (!Scene.LoadingPrims)) | 466 | && !IsAttachmentCheckFull() && (!Scene.LoadingPrims)) |
467 | { | 467 | { |
468 | IEntityTransferModule entityTransfer = m_scene.RequestModuleInterface<IEntityTransferModule>(); | 468 | IEntityTransferModule entityTransfer = m_scene.RequestModuleInterface<IEntityTransferModule>(); |
469 | uint x = 0; | ||
470 | uint y = 0; | ||
471 | string version = String.Empty; | 469 | string version = String.Empty; |
472 | Vector3 newpos = Vector3.Zero; | 470 | Vector3 newpos = Vector3.Zero; |
473 | OpenSim.Services.Interfaces.GridRegion destination = null; | 471 | OpenSim.Services.Interfaces.GridRegion destination = null; |
@@ -487,7 +485,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
487 | 485 | ||
488 | // We set the avatar position as being the object | 486 | // We set the avatar position as being the object |
489 | // position to get the region to send to | 487 | // position to get the region to send to |
490 | if ((destination = entityTransfer.GetDestination(m_scene, av.UUID, val, out x, out y, out version, out newpos)) == null) | 488 | if ((destination = entityTransfer.GetDestination(m_scene, av.UUID, val, out version, out newpos)) == null) |
491 | { | 489 | { |
492 | canCross = false; | 490 | canCross = false; |
493 | break; | 491 | break; |
@@ -522,14 +520,14 @@ namespace OpenSim.Region.Framework.Scenes | |||
522 | m_scene.CrossPrimGroupIntoNewRegion(val, this, true); | 520 | m_scene.CrossPrimGroupIntoNewRegion(val, this, true); |
523 | 521 | ||
524 | // Normalize | 522 | // Normalize |
525 | if (val.X >= Constants.RegionSize) | 523 | if (val.X >= m_scene.RegionInfo.RegionSizeX) |
526 | val.X -= Constants.RegionSize; | 524 | val.X -= m_scene.RegionInfo.RegionSizeX; |
527 | if (val.Y >= Constants.RegionSize) | 525 | if (val.Y >= m_scene.RegionInfo.RegionSizeY) |
528 | val.Y -= Constants.RegionSize; | 526 | val.Y -= m_scene.RegionInfo.RegionSizeY; |
529 | if (val.X < 0) | 527 | if (val.X < 0) |
530 | val.X += Constants.RegionSize; | 528 | val.X += m_scene.RegionInfo.RegionSizeX; |
531 | if (val.Y < 0) | 529 | if (val.Y < 0) |
532 | val.Y += Constants.RegionSize; | 530 | val.Y += m_scene.RegionInfo.RegionSizeY; |
533 | 531 | ||
534 | // If it's deleted, crossing was successful | 532 | // If it's deleted, crossing was successful |
535 | if (IsDeleted) | 533 | if (IsDeleted) |
@@ -577,9 +575,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
577 | } | 575 | } |
578 | } | 576 | } |
579 | Vector3 oldp = AbsolutePosition; | 577 | Vector3 oldp = AbsolutePosition; |
580 | val.X = Util.Clamp<float>(oldp.X, 0.5f, (float)Constants.RegionSize - 0.5f); | 578 | val.X = Util.Clamp<float>(oldp.X, 0.5f, (float)m_scene.RegionInfo.RegionSizeX - 0.5f); |
581 | val.Y = Util.Clamp<float>(oldp.Y, 0.5f, (float)Constants.RegionSize - 0.5f); | 579 | val.Y = Util.Clamp<float>(oldp.Y, 0.5f, (float)m_scene.RegionInfo.RegionSizeY - 0.5f); |
582 | val.Z = Util.Clamp<float>(oldp.Z, 0.5f, 4096.0f); | 580 | val.Z = Util.Clamp<float>(oldp.Z, 0.5f, Constants.RegionHeight); |
583 | } | 581 | } |
584 | } | 582 | } |
585 | 583 | ||
@@ -996,9 +994,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
996 | maxX = -256f; | 994 | maxX = -256f; |
997 | maxY = -256f; | 995 | maxY = -256f; |
998 | maxZ = -256f; | 996 | maxZ = -256f; |
999 | minX = 256f; | 997 | minX = 10000f; |
1000 | minY = 256f; | 998 | minY = 10000f; |
1001 | minZ = 8192f; | 999 | minZ = 10000f; |
1002 | 1000 | ||
1003 | SceneObjectPart[] parts = m_parts.GetArray(); | 1001 | SceneObjectPart[] parts = m_parts.GetArray(); |
1004 | for (int i = 0; i < parts.Length; i++) | 1002 | for (int i = 0; i < parts.Length; i++) |