aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs13
1 files changed, 12 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
index ca7a2bd..2fc610a 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
@@ -73,7 +73,18 @@ namespace OpenSim.Region.ScriptEngine.Common
73 public string State 73 public string State
74 { 74 {
75 get { return m_state; } 75 get { return m_state; }
76 set { m_state = value; } 76 set {
77 bool changed = false;
78 if (m_state != value)
79 changed = true;
80 // Set it
81 m_state = value;
82
83 if (changed)
84 {
85 m_ScriptEngine.m_EventManager.state_entry(m_localID);
86 }
87 }
77 } 88 }
78 89
79 // Object never expires 90 // Object never expires