aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/World/Estate
diff options
context:
space:
mode:
authorJeff Ames2008-07-23 13:24:25 +0000
committerJeff Ames2008-07-23 13:24:25 +0000
commit80d8e2889e62d8900837d37a800a4eeaae5ffc5a (patch)
tree47bdf0f48ae8ace3bb7cd10ab91d91b52b96f80e /OpenSim/Region/Environment/Modules/World/Estate
parentget rid of some LLQuaternion == null checks. Because LLQuaternion is (diff)
downloadopensim-SC-80d8e2889e62d8900837d37a800a4eeaae5ffc5a.zip
opensim-SC-80d8e2889e62d8900837d37a800a4eeaae5ffc5a.tar.gz
opensim-SC-80d8e2889e62d8900837d37a800a4eeaae5ffc5a.tar.bz2
opensim-SC-80d8e2889e62d8900837d37a800a4eeaae5ffc5a.tar.xz
Update svn properties. Formatting cleanup. Remove a compiler warning.
Diffstat (limited to 'OpenSim/Region/Environment/Modules/World/Estate')
-rw-r--r--OpenSim/Region/Environment/Modules/World/Estate/EstateManagementModule.cs80
1 files changed, 40 insertions, 40 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Estate/EstateManagementModule.cs b/OpenSim/Region/Environment/Modules/World/Estate/EstateManagementModule.cs
index 3996fb3..c0fdc05 100644
--- a/OpenSim/Region/Environment/Modules/World/Estate/EstateManagementModule.cs
+++ b/OpenSim/Region/Environment/Modules/World/Estate/EstateManagementModule.cs
@@ -52,7 +52,7 @@ namespace OpenSim.Region.Environment.Modules.World.Estate
52 //SendDetailedEstateData(LLUUID invoice, string estateName, uint estateID, uint parentEstate, uint estateFlags, uint sunPosition, LLUUID covenant) 52 //SendDetailedEstateData(LLUUID invoice, string estateName, uint estateID, uint parentEstate, uint estateFlags, uint sunPosition, LLUUID covenant)
53 53
54 uint sun = 0; 54 uint sun = 0;
55 if(!m_scene.RegionInfo.EstateSettings.UseGlobalTime) 55 if (!m_scene.RegionInfo.EstateSettings.UseGlobalTime)
56 sun=(uint)(m_scene.RegionInfo.EstateSettings.SunPosition*1024.0) + 0x1800; 56 sun=(uint)(m_scene.RegionInfo.EstateSettings.SunPosition*1024.0) + 0x1800;
57 remote_client.SendDetailedEstateData(invoice, 57 remote_client.SendDetailedEstateData(invoice,
58 m_scene.RegionInfo.EstateSettings.EstateName, 58 m_scene.RegionInfo.EstateSettings.EstateName,
@@ -98,7 +98,7 @@ namespace OpenSim.Region.Environment.Modules.World.Estate
98 98
99 m_scene.RegionInfo.RegionSettings.ObjectBonus = objectBonusFactor; 99 m_scene.RegionInfo.RegionSettings.ObjectBonus = objectBonusFactor;
100 100
101 if(matureLevel <= 13) 101 if (matureLevel <= 13)
102 m_scene.RegionInfo.RegionSettings.Maturity = 0; 102 m_scene.RegionInfo.RegionSettings.Maturity = 0;
103 else 103 else
104 m_scene.RegionInfo.RegionSettings.Maturity = 1; 104 m_scene.RegionInfo.RegionSettings.Maturity = 1;
@@ -245,7 +245,7 @@ namespace OpenSim.Region.Environment.Modules.World.Estate
245 ScenePresence s = m_scene.GetScenePresence(user); 245 ScenePresence s = m_scene.GetScenePresence(user);
246 if (s != null) 246 if (s != null)
247 { 247 {
248 if(!s.IsChildAgent) 248 if (!s.IsChildAgent)
249 m_scene.TeleportClientHome(user, s.ControllingClient); 249 m_scene.TeleportClientHome(user, s.ControllingClient);
250 } 250 }
251 251
@@ -395,7 +395,7 @@ namespace OpenSim.Region.Environment.Modules.World.Estate
395 args.redirectGridY = m_scene.RegionInfo.EstateSettings.RedirectGridY; 395 args.redirectGridY = m_scene.RegionInfo.EstateSettings.RedirectGridY;
396 args.regionFlags = GetRegionFlags(); 396 args.regionFlags = GetRegionFlags();
397 byte mature = 13; 397 byte mature = 13;
398 if(m_scene.RegionInfo.RegionSettings.Maturity == 1) 398 if (m_scene.RegionInfo.RegionSettings.Maturity == 1)
399 mature = 21; 399 mature = 21;
400 args.simAccess = mature; 400 args.simAccess = mature;
401 401
@@ -550,7 +550,7 @@ namespace OpenSim.Region.Environment.Modules.World.Estate
550 args.terrainStartHeight3 = (float)m_scene.RegionInfo.RegionSettings.Elevation1NE; 550 args.terrainStartHeight3 = (float)m_scene.RegionInfo.RegionSettings.Elevation1NE;
551 args.terrainHeightRange3 = (float)m_scene.RegionInfo.RegionSettings.Elevation2NE; 551 args.terrainHeightRange3 = (float)m_scene.RegionInfo.RegionSettings.Elevation2NE;
552 byte mature = 13; 552 byte mature = 13;
553 if(m_scene.RegionInfo.RegionSettings.Maturity == 1) 553 if (m_scene.RegionInfo.RegionSettings.Maturity == 1)
554 mature = 21; 554 mature = 21;
555 args.simAccess = mature; 555 args.simAccess = mature;
556 args.waterHeight = (float)m_scene.RegionInfo.RegionSettings.WaterHeight; 556 args.waterHeight = (float)m_scene.RegionInfo.RegionSettings.WaterHeight;
@@ -579,7 +579,7 @@ namespace OpenSim.Region.Environment.Modules.World.Estate
579 579
580 public void handleEstateChangeInfo(IClientAPI remoteClient, LLUUID invoice, LLUUID senderID, UInt32 parms1, UInt32 parms2) 580 public void handleEstateChangeInfo(IClientAPI remoteClient, LLUUID invoice, LLUUID senderID, UInt32 parms1, UInt32 parms2)
581 { 581 {
582 if(parms2 == 0) 582 if (parms2 == 0)
583 { 583 {
584 m_scene.RegionInfo.EstateSettings.UseGlobalTime = true; 584 m_scene.RegionInfo.EstateSettings.UseGlobalTime = true;
585 m_scene.RegionInfo.EstateSettings.SunPosition = 0.0; 585 m_scene.RegionInfo.EstateSettings.SunPosition = 0.0;
@@ -590,37 +590,37 @@ namespace OpenSim.Region.Environment.Modules.World.Estate
590 m_scene.RegionInfo.EstateSettings.SunPosition = (double)(parms2 - 0x1800)/1024.0; 590 m_scene.RegionInfo.EstateSettings.SunPosition = (double)(parms2 - 0x1800)/1024.0;
591 } 591 }
592 592
593 if((parms1 & 0x00000010) != 0) 593 if ((parms1 & 0x00000010) != 0)
594 m_scene.RegionInfo.EstateSettings.FixedSun = true; 594 m_scene.RegionInfo.EstateSettings.FixedSun = true;
595 else 595 else
596 m_scene.RegionInfo.EstateSettings.FixedSun = false; 596 m_scene.RegionInfo.EstateSettings.FixedSun = false;
597 597
598 if((parms1 & 0x00008000) != 0) 598 if ((parms1 & 0x00008000) != 0)
599 m_scene.RegionInfo.EstateSettings.PublicAccess = true; 599 m_scene.RegionInfo.EstateSettings.PublicAccess = true;
600 else 600 else
601 m_scene.RegionInfo.EstateSettings.PublicAccess = false; 601 m_scene.RegionInfo.EstateSettings.PublicAccess = false;
602 602
603 if((parms1 & 0x10000000) != 0) 603 if ((parms1 & 0x10000000) != 0)
604 m_scene.RegionInfo.EstateSettings.AllowVoice = true; 604 m_scene.RegionInfo.EstateSettings.AllowVoice = true;
605 else 605 else
606 m_scene.RegionInfo.EstateSettings.AllowVoice = false; 606 m_scene.RegionInfo.EstateSettings.AllowVoice = false;
607 607
608 if((parms1 & 0x00100000) != 0) 608 if ((parms1 & 0x00100000) != 0)
609 m_scene.RegionInfo.EstateSettings.AllowDirectTeleport = true; 609 m_scene.RegionInfo.EstateSettings.AllowDirectTeleport = true;
610 else 610 else
611 m_scene.RegionInfo.EstateSettings.AllowDirectTeleport = false; 611 m_scene.RegionInfo.EstateSettings.AllowDirectTeleport = false;
612 612
613 if((parms1 & 0x00800000) != 0) 613 if ((parms1 & 0x00800000) != 0)
614 m_scene.RegionInfo.EstateSettings.DenyAnonymous = true; 614 m_scene.RegionInfo.EstateSettings.DenyAnonymous = true;
615 else 615 else
616 m_scene.RegionInfo.EstateSettings.DenyAnonymous = false; 616 m_scene.RegionInfo.EstateSettings.DenyAnonymous = false;
617 617
618 if((parms1 & 0x01000000) != 0) 618 if ((parms1 & 0x01000000) != 0)
619 m_scene.RegionInfo.EstateSettings.DenyIdentified = true; 619 m_scene.RegionInfo.EstateSettings.DenyIdentified = true;
620 else 620 else
621 m_scene.RegionInfo.EstateSettings.DenyIdentified = false; 621 m_scene.RegionInfo.EstateSettings.DenyIdentified = false;
622 622
623 if((parms1 & 0x02000000) != 0) 623 if ((parms1 & 0x02000000) != 0)
624 m_scene.RegionInfo.EstateSettings.DenyTransacted = true; 624 m_scene.RegionInfo.EstateSettings.DenyTransacted = true;
625 else 625 else
626 m_scene.RegionInfo.EstateSettings.DenyTransacted = false; 626 m_scene.RegionInfo.EstateSettings.DenyTransacted = false;
@@ -628,10 +628,10 @@ namespace OpenSim.Region.Environment.Modules.World.Estate
628 m_scene.RegionInfo.EstateSettings.Save(); 628 m_scene.RegionInfo.EstateSettings.Save();
629 629
630 float sun = (float)m_scene.RegionInfo.RegionSettings.SunPosition; 630 float sun = (float)m_scene.RegionInfo.RegionSettings.SunPosition;
631 if(m_scene.RegionInfo.RegionSettings.UseEstateSun) 631 if (m_scene.RegionInfo.RegionSettings.UseEstateSun)
632 { 632 {
633 sun = (float)m_scene.RegionInfo.EstateSettings.SunPosition; 633 sun = (float)m_scene.RegionInfo.EstateSettings.SunPosition;
634 if(m_scene.RegionInfo.EstateSettings.UseGlobalTime) 634 if (m_scene.RegionInfo.EstateSettings.UseGlobalTime)
635 sun = m_scene.EventManager.GetSunLindenHour(); 635 sun = m_scene.EventManager.GetSunLindenHour();
636 } 636 }
637 637
@@ -726,30 +726,30 @@ namespace OpenSim.Region.Environment.Modules.World.Estate
726 726
727 // Fully implemented 727 // Fully implemented
728 // 728 //
729 if(m_scene.RegionInfo.RegionSettings.AllowDamage) 729 if (m_scene.RegionInfo.RegionSettings.AllowDamage)
730 flags |= Simulator.RegionFlags.AllowDamage; 730 flags |= Simulator.RegionFlags.AllowDamage;
731 if(m_scene.RegionInfo.RegionSettings.BlockTerraform) 731 if (m_scene.RegionInfo.RegionSettings.BlockTerraform)
732 flags |= Simulator.RegionFlags.BlockTerraform; 732 flags |= Simulator.RegionFlags.BlockTerraform;
733 if(!m_scene.RegionInfo.RegionSettings.AllowLandResell) 733 if (!m_scene.RegionInfo.RegionSettings.AllowLandResell)
734 flags |= Simulator.RegionFlags.BlockLandResell; 734 flags |= Simulator.RegionFlags.BlockLandResell;
735 if(m_scene.RegionInfo.RegionSettings.DisableCollisions) 735 if (m_scene.RegionInfo.RegionSettings.DisableCollisions)
736 flags |= Simulator.RegionFlags.SkipCollisions; 736 flags |= Simulator.RegionFlags.SkipCollisions;
737 if(m_scene.RegionInfo.RegionSettings.DisableScripts) 737 if (m_scene.RegionInfo.RegionSettings.DisableScripts)
738 flags |= Simulator.RegionFlags.SkipScripts; 738 flags |= Simulator.RegionFlags.SkipScripts;
739 if(m_scene.RegionInfo.RegionSettings.DisablePhysics) 739 if (m_scene.RegionInfo.RegionSettings.DisablePhysics)
740 flags |= Simulator.RegionFlags.SkipPhysics; 740 flags |= Simulator.RegionFlags.SkipPhysics;
741 if(m_scene.RegionInfo.RegionSettings.BlockFly) 741 if (m_scene.RegionInfo.RegionSettings.BlockFly)
742 flags |= Simulator.RegionFlags.NoFly; 742 flags |= Simulator.RegionFlags.NoFly;
743 if(m_scene.RegionInfo.RegionSettings.RestrictPushing) 743 if (m_scene.RegionInfo.RegionSettings.RestrictPushing)
744 flags |= Simulator.RegionFlags.RestrictPushObject; 744 flags |= Simulator.RegionFlags.RestrictPushObject;
745 if(m_scene.RegionInfo.RegionSettings.AllowLandJoinDivide) 745 if (m_scene.RegionInfo.RegionSettings.AllowLandJoinDivide)
746 flags |= Simulator.RegionFlags.AllowParcelChanges; 746 flags |= Simulator.RegionFlags.AllowParcelChanges;
747 if(m_scene.RegionInfo.RegionSettings.BlockShowInSearch) 747 if (m_scene.RegionInfo.RegionSettings.BlockShowInSearch)
748 flags |= (Simulator.RegionFlags)(1 << 29); 748 flags |= (Simulator.RegionFlags)(1 << 29);
749 749
750 if(m_scene.RegionInfo.RegionSettings.FixedSun) 750 if (m_scene.RegionInfo.RegionSettings.FixedSun)
751 flags |= Simulator.RegionFlags.SunFixed; 751 flags |= Simulator.RegionFlags.SunFixed;
752 if(m_scene.RegionInfo.RegionSettings.Sandbox) 752 if (m_scene.RegionInfo.RegionSettings.Sandbox)
753 flags |= Simulator.RegionFlags.Sandbox; 753 flags |= Simulator.RegionFlags.Sandbox;
754 754
755 // Handled in LandObject.cs: AllowLandmark 755 // Handled in LandObject.cs: AllowLandmark
@@ -769,30 +769,30 @@ namespace OpenSim.Region.Environment.Modules.World.Estate
769 { 769 {
770 Simulator.RegionFlags flags = Simulator.RegionFlags.None; 770 Simulator.RegionFlags flags = Simulator.RegionFlags.None;
771 771
772 if(m_scene.RegionInfo.EstateSettings.FixedSun) 772 if (m_scene.RegionInfo.EstateSettings.FixedSun)
773 flags |= Simulator.RegionFlags.SunFixed; 773 flags |= Simulator.RegionFlags.SunFixed;
774 if(m_scene.RegionInfo.EstateSettings.PublicAccess) 774 if (m_scene.RegionInfo.EstateSettings.PublicAccess)
775 flags |= (Simulator.RegionFlags.PublicAllowed | 775 flags |= (Simulator.RegionFlags.PublicAllowed |
776 Simulator.RegionFlags.ExternallyVisible); 776 Simulator.RegionFlags.ExternallyVisible);
777 if(m_scene.RegionInfo.EstateSettings.AllowVoice) 777 if (m_scene.RegionInfo.EstateSettings.AllowVoice)
778 flags |= Simulator.RegionFlags.AllowVoice; 778 flags |= Simulator.RegionFlags.AllowVoice;
779 if(m_scene.RegionInfo.EstateSettings.AllowDirectTeleport) 779 if (m_scene.RegionInfo.EstateSettings.AllowDirectTeleport)
780 flags |= Simulator.RegionFlags.AllowDirectTeleport; 780 flags |= Simulator.RegionFlags.AllowDirectTeleport;
781 if(m_scene.RegionInfo.EstateSettings.DenyAnonymous) 781 if (m_scene.RegionInfo.EstateSettings.DenyAnonymous)
782 flags |= Simulator.RegionFlags.DenyAnonymous; 782 flags |= Simulator.RegionFlags.DenyAnonymous;
783 if(m_scene.RegionInfo.EstateSettings.DenyIdentified) 783 if (m_scene.RegionInfo.EstateSettings.DenyIdentified)
784 flags |= Simulator.RegionFlags.DenyIdentified; 784 flags |= Simulator.RegionFlags.DenyIdentified;
785 if(m_scene.RegionInfo.EstateSettings.DenyTransacted) 785 if (m_scene.RegionInfo.EstateSettings.DenyTransacted)
786 flags |= Simulator.RegionFlags.DenyTransacted; 786 flags |= Simulator.RegionFlags.DenyTransacted;
787 if(m_scene.RegionInfo.EstateSettings.AbuseEmailToEstateOwner) 787 if (m_scene.RegionInfo.EstateSettings.AbuseEmailToEstateOwner)
788 flags |= Simulator.RegionFlags.AbuseEmailToEstateOwner; 788 flags |= Simulator.RegionFlags.AbuseEmailToEstateOwner;
789 if(m_scene.RegionInfo.EstateSettings.BlockDwell) 789 if (m_scene.RegionInfo.EstateSettings.BlockDwell)
790 flags |= Simulator.RegionFlags.BlockDwell; 790 flags |= Simulator.RegionFlags.BlockDwell;
791 if(m_scene.RegionInfo.EstateSettings.EstateSkipScripts) 791 if (m_scene.RegionInfo.EstateSettings.EstateSkipScripts)
792 flags |= Simulator.RegionFlags.EstateSkipScripts; 792 flags |= Simulator.RegionFlags.EstateSkipScripts;
793 if(m_scene.RegionInfo.EstateSettings.ResetHomeOnTeleport) 793 if (m_scene.RegionInfo.EstateSettings.ResetHomeOnTeleport)
794 flags |= Simulator.RegionFlags.ResetHomeOnTeleport; 794 flags |= Simulator.RegionFlags.ResetHomeOnTeleport;
795 if(m_scene.RegionInfo.EstateSettings.TaxFree) 795 if (m_scene.RegionInfo.EstateSettings.TaxFree)
796 flags |= Simulator.RegionFlags.TaxFree; 796 flags |= Simulator.RegionFlags.TaxFree;
797 797
798 return (uint)flags; 798 return (uint)flags;
@@ -804,7 +804,7 @@ namespace OpenSim.Region.Environment.Modules.World.Estate
804 return true; 804 return true;
805 805
806 List<LLUUID> ems = new List<LLUUID>(m_scene.RegionInfo.EstateSettings.EstateManagers); 806 List<LLUUID> ems = new List<LLUUID>(m_scene.RegionInfo.EstateSettings.EstateManagers);
807 if(ems.Contains(avatarID)) 807 if (ems.Contains(avatarID))
808 return true; 808 return true;
809 809
810 return false; 810 return false;