aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs27
1 files changed, 7 insertions, 20 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 26969a5..7c21ba9 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -1204,10 +1204,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1204 1204
1205 if ((status & ScriptBaseClass.STATUS_PHANTOM) == ScriptBaseClass.STATUS_PHANTOM) 1205 if ((status & ScriptBaseClass.STATUS_PHANTOM) == ScriptBaseClass.STATUS_PHANTOM)
1206 { 1206 {
1207 if (value != 0) 1207 if (m_host.ParentGroup != null)
1208 m_host.ScriptSetPhantomStatus(true); 1208 m_host.ParentGroup.ScriptSetPhantomStatus(value != 0);
1209 else
1210 m_host.ScriptSetPhantomStatus(false);
1211 } 1209 }
1212 1210
1213 if ((status & ScriptBaseClass.STATUS_CAST_SHADOWS) == ScriptBaseClass.STATUS_CAST_SHADOWS) 1211 if ((status & ScriptBaseClass.STATUS_CAST_SHADOWS) == ScriptBaseClass.STATUS_CAST_SHADOWS)
@@ -6446,9 +6444,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6446 if (m_host.ParentGroup != null) 6444 if (m_host.ParentGroup != null)
6447 { 6445 {
6448 if (!m_host.ParentGroup.IsDeleted) 6446 if (!m_host.ParentGroup.IsDeleted)
6449 { 6447 m_host.ParentGroup.ScriptSetVolumeDetect(detect != 0);
6450 m_host.ParentGroup.RootPart.ScriptSetVolumeDetect(detect!=0);
6451 }
6452 } 6448 }
6453 } 6449 }
6454 6450
@@ -6456,7 +6452,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6456 /// This is a depecated function so this just replicates the result of 6452 /// This is a depecated function so this just replicates the result of
6457 /// invoking it in SL 6453 /// invoking it in SL
6458 /// </summary> 6454 /// </summary>
6459
6460 public void llRemoteLoadScript(string target, string name, int running, int start_param) 6455 public void llRemoteLoadScript(string target, string name, int running, int start_param)
6461 { 6456 {
6462 m_host.AddScriptLPS(1); 6457 m_host.AddScriptLPS(1);
@@ -7254,14 +7249,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7254 return; 7249 return;
7255 7250
7256 string ph = rules.Data[idx++].ToString(); 7251 string ph = rules.Data[idx++].ToString();
7257 bool phantom;
7258 7252
7259 if (ph.Equals("1")) 7253 if (m_host.ParentGroup != null)
7260 phantom = true; 7254 m_host.ParentGroup.ScriptSetPhantomStatus(ph.Equals("1"));
7261 else
7262 phantom = false;
7263 7255
7264 part.ScriptSetPhantomStatus(phantom);
7265 break; 7256 break;
7266 7257
7267 case (int)ScriptBaseClass.PRIM_PHYSICS: 7258 case (int)ScriptBaseClass.PRIM_PHYSICS:
@@ -7282,14 +7273,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7282 if (remain < 1) 7273 if (remain < 1)
7283 return; 7274 return;
7284 string temp = rules.Data[idx++].ToString(); 7275 string temp = rules.Data[idx++].ToString();
7285 bool tempOnRez;
7286 7276
7287 if (temp.Equals("1")) 7277 if (m_host.ParentGroup != null)
7288 tempOnRez = true; 7278 m_host.ParentGroup.ScriptSetTemporaryStatus(temp.Equals("1"));
7289 else
7290 tempOnRez = false;
7291 7279
7292 part.ScriptSetTemporaryStatus(tempOnRez);
7293 break; 7280 break;
7294 7281
7295 case (int)ScriptBaseClass.PRIM_TEXGEN: 7282 case (int)ScriptBaseClass.PRIM_TEXGEN: