aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 1d71da3..15188c5 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -1859,15 +1859,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1859 float ground = World.GetGroundHeight((float)targetPos.x, (float)targetPos.y); 1859 float ground = World.GetGroundHeight((float)targetPos.x, (float)targetPos.y);
1860 bool disable_underground_movement = m_ScriptEngine.Config.GetBoolean("DisableUndergroundMovement", true); 1860 bool disable_underground_movement = m_ScriptEngine.Config.GetBoolean("DisableUndergroundMovement", true);
1861 1861
1862 if ((targetPos.z < ground) && disable_underground_movement)
1863 targetPos.z = ground;
1864 1862
1865 if (part.ParentGroup == null) 1863 if (part.ParentGroup == null)
1866 { 1864 {
1865 if ((targetPos.z < ground) && disable_underground_movement)
1866 targetPos.z = ground;
1867 part.UpdateOffSet(new Vector3((float)targetPos.x, (float)targetPos.y, (float)targetPos.z)); 1867 part.UpdateOffSet(new Vector3((float)targetPos.x, (float)targetPos.y, (float)targetPos.z));
1868 } 1868 }
1869 else if (part.ParentGroup.RootPart == part) 1869 else if (part.ParentGroup.RootPart == part)
1870 { 1870 {
1871 if ((targetPos.z < ground) && disable_underground_movement)
1872 targetPos.z = ground;
1871 SceneObjectGroup parent = part.ParentGroup; 1873 SceneObjectGroup parent = part.ParentGroup;
1872 parent.UpdateGroupPosition(new Vector3((float)targetPos.x, (float)targetPos.y, (float)targetPos.z)); 1874 parent.UpdateGroupPosition(new Vector3((float)targetPos.x, (float)targetPos.y, (float)targetPos.z));
1873 } 1875 }