aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs28
1 files changed, 14 insertions, 14 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
index 40e225d..7745d95 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
@@ -933,7 +933,7 @@ namespace OpenSim.Region.ScriptEngine.Common
933 bool allow = true; 933 bool allow = true;
934 foreach(SceneObjectPart part in group.Children.Values) 934 foreach(SceneObjectPart part in group.Children.Values)
935 { 935 {
936 if(part.Scale.X > 10.0 || part.Scale.Y > 10.0 || part.Scale.Z > 10.0) 936 if(part.Scale.X > World.m_maxPhys || part.Scale.Y > World.m_maxPhys || part.Scale.Z > World.m_maxPhys)
937 { 937 {
938 allow = false; 938 allow = false;
939 break; 939 break;
@@ -1066,19 +1066,19 @@ namespace OpenSim.Region.ScriptEngine.Common
1066 1066
1067 if(part.ParentGroup.RootPart.PhysActor != null && part.ParentGroup.RootPart.PhysActor.IsPhysical) 1067 if(part.ParentGroup.RootPart.PhysActor != null && part.ParentGroup.RootPart.PhysActor.IsPhysical)
1068 { 1068 {
1069 if(scale.x > 10.0) 1069 if(scale.x > World.m_maxPhys)
1070 scale.x = 10.0; 1070 scale.x = World.m_maxPhys;
1071 if(scale.y > 10.0) 1071 if(scale.y > World.m_maxPhys)
1072 scale.y = 10.0; 1072 scale.y = World.m_maxPhys;
1073 if(scale.z > 10.0) 1073 if(scale.z > World.m_maxPhys)
1074 scale.z = 10.0; 1074 scale.z = World.m_maxPhys;
1075 } 1075 }
1076 if(scale.x > 65536.0) 1076 if(scale.x > World.m_maxNonphys)
1077 scale.x = 65536.0; 1077 scale.x = World.m_maxNonphys;
1078 if(scale.y > 65536.0) 1078 if(scale.y > World.m_maxNonphys)
1079 scale.y = 65536.0; 1079 scale.y = World.m_maxNonphys;
1080 if(scale.z > 65536.0) 1080 if(scale.z > World.m_maxNonphys)
1081 scale.z = 65536.0; 1081 scale.z = World.m_maxNonphys;
1082 LLVector3 tmp = part.Scale; 1082 LLVector3 tmp = part.Scale;
1083 tmp.X = (float)scale.x; 1083 tmp.X = (float)scale.x;
1084 tmp.Y = (float)scale.y; 1084 tmp.Y = (float)scale.y;