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
This commit is contained in:
Teravus Ovares
2008-04-15 16:49:06 +00:00
parent 6f8ff32630
commit 331f26548b
3 changed files with 57 additions and 35 deletions

View File

@@ -79,7 +79,15 @@ namespace OpenSim.Region.ScriptEngine.Common
if (m_state != value)
{
m_state = value;
m_ScriptEngine.m_EventManager.state_entry(m_localID);
try
{
m_ScriptEngine.m_EventManager.state_entry(m_localID);
}
catch (AppDomainUnloadedException)
{
System.Console.WriteLine("[SCRIPT]: state change called when script was unloaded. Nothing to worry about, but noting the occurance");
}
}
}
}