mirror of
https://github.com/opensim/opensim.git
synced 2026-07-14 11:45:35 +08:00
corrected llResetScript according to description within LSL wiki
Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
This commit is contained in:
@@ -970,12 +970,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
|
||||
|
||||
EventQueue.Clear();
|
||||
m_Script.ResetVars();
|
||||
string oldState = State;
|
||||
State = "default";
|
||||
|
||||
Part.SetScriptEvents(ItemID,
|
||||
(int)m_Script.GetStateEventFlags(State));
|
||||
|
||||
if (m_CurrentEvent != "state_entry")
|
||||
if (m_CurrentEvent != "state_entry" || oldState != "default")
|
||||
{
|
||||
m_SaveState = StatePersistedHere;
|
||||
PostEvent(new EventParams("state_entry",
|
||||
|
||||
Reference in New Issue
Block a user