Mantis#1425. Thank you kindly, Melanie for a patch that:
0001425: [PATCH] Correct llResetOtherScript() behavoir in XEngine0.6.0-stable
parent
2d540514f4
commit
f2f183b307
|
@ -1082,12 +1082,15 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||||
|
|
||||||
public void ResetScript()
|
public void ResetScript()
|
||||||
{
|
{
|
||||||
|
bool running=Running;
|
||||||
|
|
||||||
Stop(0);
|
Stop(0);
|
||||||
m_Engine.m_ASYNCLSLCommandManager.RemoveScript(m_LocalID, m_ItemID);
|
m_Engine.m_ASYNCLSLCommandManager.RemoveScript(m_LocalID, m_ItemID);
|
||||||
m_EventQueue.Clear();
|
m_EventQueue.Clear();
|
||||||
m_Script.ResetVars();
|
m_Script.ResetVars();
|
||||||
m_State = "default";
|
m_State = "default";
|
||||||
Start();
|
if(running)
|
||||||
|
Start();
|
||||||
PostEvent(new XEventParams("state_entry",
|
PostEvent(new XEventParams("state_entry",
|
||||||
new Object[0], new XDetectParams[0]));
|
new Object[0], new XDetectParams[0]));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue