mirror of
https://github.com/opensim/opensim.git
synced 2026-07-14 03:15:36 +08:00
fix missing clear of queued timer even and state transition flags on scripts reset
This commit is contained in:
@@ -1018,11 +1018,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
|
||||
part.Inventory.GetInventoryItem(ItemID).PermsGranter = UUID.Zero;
|
||||
part.CollisionSound = UUID.Zero;
|
||||
AsyncCommandManager.RemoveScript(Engine, LocalID, ItemID);
|
||||
|
||||
m_TimerQueued = false;
|
||||
m_StateChangeInProgress = false;
|
||||
EventQueue.Clear();
|
||||
|
||||
m_Script.ResetVars();
|
||||
StartParam = 0;
|
||||
State = "default";
|
||||
|
||||
|
||||
part.SetScriptEvents(ItemID,
|
||||
(int)m_Script.GetStateEventFlags(State));
|
||||
if (running)
|
||||
@@ -1049,6 +1054,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
|
||||
part.CollisionSound = UUID.Zero;
|
||||
AsyncCommandManager.RemoveScript(Engine, LocalID, ItemID);
|
||||
|
||||
m_TimerQueued = false;
|
||||
m_StateChangeInProgress = false;
|
||||
EventQueue.Clear();
|
||||
m_Script.ResetVars();
|
||||
string oldState = State;
|
||||
|
||||
Reference in New Issue
Block a user