diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 11 |
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 | { |