Simplify some logic in the ScriptInstance constructor - running is set to false in both if/else branches
parent
f0c1746063
commit
2d32401e23
|
@ -363,15 +363,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
|
||||||
part.SetScriptEvents(m_ItemID,
|
part.SetScriptEvents(m_ItemID,
|
||||||
(int)m_Script.GetStateEventFlags(State));
|
(int)m_Script.GetStateEventFlags(State));
|
||||||
|
|
||||||
if (Running && (!m_ShuttingDown))
|
Running = false;
|
||||||
{
|
|
||||||
Running = false;
|
if (m_ShuttingDown)
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
Running = false;
|
|
||||||
m_startOnInit = false;
|
m_startOnInit = false;
|
||||||
}
|
|
||||||
|
|
||||||
// we get new rez events on sim restart, too
|
// we get new rez events on sim restart, too
|
||||||
// but if there is state, then we fire the change
|
// but if there is state, then we fire the change
|
||||||
|
@ -380,7 +375,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
|
||||||
// We loaded state, don't force a re-save
|
// We loaded state, don't force a re-save
|
||||||
m_SaveState = false;
|
m_SaveState = false;
|
||||||
m_startedFromSavedState = true;
|
m_startedFromSavedState = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue