diff options
author | Teravus Ovares | 2008-04-15 16:49:06 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-04-15 16:49:06 +0000 |
commit | 331f26548bc414511b6c450107556e6e3484178a (patch) | |
tree | 3a44ba599386628e58b4aa2d7920117b7ef114da /OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | |
parent | From: Dr Scofield <hud@zurich.ibm.com> (diff) | |
download | opensim-SC-331f26548bc414511b6c450107556e6e3484178a.zip opensim-SC-331f26548bc414511b6c450107556e6e3484178a.tar.gz opensim-SC-331f26548bc414511b6c450107556e6e3484178a.tar.bz2 opensim-SC-331f26548bc414511b6c450107556e6e3484178a.tar.xz |
Fixed LSL State support.
* Re-applied Tedd's patch that got overwritten.
* Replaced (state)\s+([^;\n\r]+)([\r\n\s];) with (state)\s+([^;\n\r]+)(;[\r\n\s])
* Added a state(string) method to BuiltIn_Commands_BaseClass
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs index a2bc397..1a7d044 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | |||
@@ -79,7 +79,15 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
79 | if (m_state != value) | 79 | if (m_state != value) |
80 | { | 80 | { |
81 | m_state = value; | 81 | m_state = value; |
82 | m_ScriptEngine.m_EventManager.state_entry(m_localID); | 82 | try |
83 | { | ||
84 | m_ScriptEngine.m_EventManager.state_entry(m_localID); | ||
85 | |||
86 | } | ||
87 | catch (AppDomainUnloadedException) | ||
88 | { | ||
89 | System.Console.WriteLine("[SCRIPT]: state change called when script was unloaded. Nothing to worry about, but noting the occurance"); | ||
90 | } | ||
83 | } | 91 | } |
84 | } | 92 | } |
85 | } | 93 | } |