diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index ac4d43a..a5c5453 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -790,19 +790,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
790 | if (value == 1) | 790 | if (value == 1) |
791 | { | 791 | { |
792 | SceneObjectGroup group = m_host.ParentGroup; | 792 | SceneObjectGroup group = m_host.ParentGroup; |
793 | if(group == null) | 793 | if (group == null) |
794 | return; | 794 | return; |
795 | bool allow = true; | 795 | bool allow = true; |
796 | foreach(SceneObjectPart part in group.Children.Values) | 796 | foreach (SceneObjectPart part in group.Children.Values) |
797 | { | 797 | { |
798 | if(part.Scale.X > World.m_maxPhys || part.Scale.Y > World.m_maxPhys || part.Scale.Z > World.m_maxPhys) | 798 | if (part.Scale.X > World.m_maxPhys || part.Scale.Y > World.m_maxPhys || part.Scale.Z > World.m_maxPhys) |
799 | { | 799 | { |
800 | allow = false; | 800 | allow = false; |
801 | break; | 801 | break; |
802 | } | 802 | } |
803 | } | 803 | } |
804 | 804 | ||
805 | if(!allow) | 805 | if (!allow) |
806 | return; | 806 | return; |
807 | m_host.ScriptSetPhysicsStatus(true); | 807 | m_host.ScriptSetPhysicsStatus(true); |
808 | } | 808 | } |
@@ -937,23 +937,23 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
937 | { | 937 | { |
938 | // TODO: this needs to trigger a persistance save as well | 938 | // TODO: this needs to trigger a persistance save as well |
939 | 939 | ||
940 | if(part == null || part.ParentGroup == null || part.ParentGroup.RootPart == null) | 940 | if (part == null || part.ParentGroup == null || part.ParentGroup.RootPart == null) |
941 | return; | 941 | return; |
942 | 942 | ||
943 | if(part.ParentGroup.RootPart.PhysActor != null && part.ParentGroup.RootPart.PhysActor.IsPhysical) | 943 | if (part.ParentGroup.RootPart.PhysActor != null && part.ParentGroup.RootPart.PhysActor.IsPhysical) |
944 | { | 944 | { |
945 | if(scale.x > World.m_maxPhys) | 945 | if (scale.x > World.m_maxPhys) |
946 | scale.x = World.m_maxPhys; | 946 | scale.x = World.m_maxPhys; |
947 | if(scale.y > World.m_maxPhys) | 947 | if (scale.y > World.m_maxPhys) |
948 | scale.y = World.m_maxPhys; | 948 | scale.y = World.m_maxPhys; |
949 | if(scale.z > World.m_maxPhys) | 949 | if (scale.z > World.m_maxPhys) |
950 | scale.z = World.m_maxPhys; | 950 | scale.z = World.m_maxPhys; |
951 | } | 951 | } |
952 | if(scale.x > World.m_maxNonphys) | 952 | if (scale.x > World.m_maxNonphys) |
953 | scale.x = World.m_maxNonphys; | 953 | scale.x = World.m_maxNonphys; |
954 | if(scale.y > World.m_maxNonphys) | 954 | if (scale.y > World.m_maxNonphys) |
955 | scale.y = World.m_maxNonphys; | 955 | scale.y = World.m_maxNonphys; |
956 | if(scale.z > World.m_maxNonphys) | 956 | if (scale.z > World.m_maxNonphys) |
957 | scale.z = World.m_maxNonphys; | 957 | scale.z = World.m_maxNonphys; |
958 | LLVector3 tmp = part.Scale; | 958 | LLVector3 tmp = part.Scale; |
959 | tmp.X = (float)scale.x; | 959 | tmp.X = (float)scale.x; |
@@ -6748,7 +6748,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
6748 | { | 6748 | { |
6749 | m_host.AddScriptLPS(1); | 6749 | m_host.AddScriptLPS(1); |
6750 | IEstateModule estate = World.RequestModuleInterface<IEstateModule>(); | 6750 | IEstateModule estate = World.RequestModuleInterface<IEstateModule>(); |
6751 | if(estate == null) | 6751 | if (estate == null) |
6752 | return 67108864; | 6752 | return 67108864; |
6753 | return (int)estate.GetRegionFlags(); | 6753 | return (int)estate.GetRegionFlags(); |
6754 | } | 6754 | } |