aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common
diff options
context:
space:
mode:
authorTeravus Ovares2008-03-14 06:20:50 +0000
committerTeravus Ovares2008-03-14 06:20:50 +0000
commitae9a98ceb15e43dc24c485955051f554a2247401 (patch)
tree27cd062a1ffd841eefba779db9752aa02350a8d1 /OpenSim/Region/ScriptEngine/Common
parent* Preliminary work with the ODEPlugin to collect collision data. (diff)
downloadopensim-SC_OLD-ae9a98ceb15e43dc24c485955051f554a2247401.zip
opensim-SC_OLD-ae9a98ceb15e43dc24c485955051f554a2247401.tar.gz
opensim-SC_OLD-ae9a98ceb15e43dc24c485955051f554a2247401.tar.bz2
opensim-SC_OLD-ae9a98ceb15e43dc24c485955051f554a2247401.tar.xz
* Added proper handling of llSetStatus(STATUS_PHYSICS,BOOL)
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs11
1 files changed, 9 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
index e64fb36..ab7519e 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
@@ -609,11 +609,18 @@ namespace OpenSim.Region.ScriptEngine.Common
609 m_host.AddScriptLPS(1); 609 m_host.AddScriptLPS(1);
610 if ((status & BuiltIn_Commands_BaseClass.STATUS_PHYSICS) == BuiltIn_Commands_BaseClass.STATUS_PHYSICS) 610 if ((status & BuiltIn_Commands_BaseClass.STATUS_PHYSICS) == BuiltIn_Commands_BaseClass.STATUS_PHYSICS)
611 { 611 {
612 m_host.AddFlag(LLObject.ObjectFlags.Physics); 612 if (value == 1)
613 m_host.ScriptSetPhysicsStatus(true);
614 else
615 m_host.ScriptSetPhysicsStatus(false);
616
613 } 617 }
614 if ((status & BuiltIn_Commands_BaseClass.STATUS_PHANTOM) == BuiltIn_Commands_BaseClass.STATUS_PHANTOM) 618 if ((status & BuiltIn_Commands_BaseClass.STATUS_PHANTOM) == BuiltIn_Commands_BaseClass.STATUS_PHANTOM)
615 { 619 {
616 m_host.AddFlag(LLObject.ObjectFlags.Phantom); 620 if (value == 1)
621 m_host.ScriptSetPhantomStatus(true);
622 else
623 m_host.ScriptSetPhantomStatus(false);
617 } 624 }
618 if ((status & BuiltIn_Commands_BaseClass.STATUS_CAST_SHADOWS) == BuiltIn_Commands_BaseClass.STATUS_CAST_SHADOWS) 625 if ((status & BuiltIn_Commands_BaseClass.STATUS_CAST_SHADOWS) == BuiltIn_Commands_BaseClass.STATUS_CAST_SHADOWS)
619 { 626 {