mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 18:25:33 +08:00
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:
@@ -106,7 +106,11 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||
get { return m_LSL_Functions.State; }
|
||||
set { m_LSL_Functions.State = value; }
|
||||
}
|
||||
|
||||
public void state(string state)
|
||||
{
|
||||
State = state;
|
||||
|
||||
}
|
||||
|
||||
|
||||
public void Start(BuilIn_Commands LSL_Functions)
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user