diff options
author | UbitUmarov | 2018-04-10 21:15:55 +0100 |
---|---|---|
committer | UbitUmarov | 2018-04-10 21:15:55 +0100 |
commit | dc35ce26d0e74e9a92bf7bdbea052e01651cf6b4 (patch) | |
tree | c20308a3fec8d253776b377331cccef27e5fd223 | |
parent | mantis 8275: fix llStopSound for llPlaySound. Code was doing as SL wiki but n... (diff) | |
download | opensim-SC-dc35ce26d0e74e9a92bf7bdbea052e01651cf6b4.zip opensim-SC-dc35ce26d0e74e9a92bf7bdbea052e01651cf6b4.tar.gz opensim-SC-dc35ce26d0e74e9a92bf7bdbea052e01651cf6b4.tar.bz2 opensim-SC-dc35ce26d0e74e9a92bf7bdbea052e01651cf6b4.tar.xz |
YEngine: apply a few fixes by Mike Rieker
-rw-r--r-- | OpenSim/Region/ScriptEngine/YEngine/XMRInstRun.cs | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/OpenSim/Region/ScriptEngine/YEngine/XMRInstRun.cs b/OpenSim/Region/ScriptEngine/YEngine/XMRInstRun.cs index a52c4c8..25f7209 100644 --- a/OpenSim/Region/ScriptEngine/YEngine/XMRInstRun.cs +++ b/OpenSim/Region/ScriptEngine/YEngine/XMRInstRun.cs | |||
@@ -383,10 +383,10 @@ namespace OpenSim.Region.ScriptEngine.Yengine | |||
383 | if(((ec == ScriptEventCode.None) && active) || | 383 | if(((ec == ScriptEventCode.None) && active) || |
384 | ((ec != ScriptEventCode.None) && !active)) | 384 | ((ec != ScriptEventCode.None) && !active)) |
385 | { | 385 | { |
386 | Console.WriteLine("CheckRunLockInvariants: script=" + m_DescName); | 386 | m_log.Error("CheckRunLockInvariants: script=" + m_DescName); |
387 | Console.WriteLine("CheckRunLockInvariants: eventcode=" + ec.ToString() + ", active=" + active.ToString()); | 387 | m_log.Error("CheckRunLockInvariants: eventcode=" + ec.ToString() + ", active=" + active.ToString()); |
388 | Console.WriteLine("CheckRunLockInvariants: m_RunOnePhase=" + m_RunOnePhase); | 388 | m_log.Error("CheckRunLockInvariants: m_RunOnePhase=" + m_RunOnePhase); |
389 | Console.WriteLine("CheckRunLockInvariants: lastec=" + lastEventCode + ", lastAct=" + lastActive + ", lastPhase=" + lastRunPhase); | 389 | m_log.Error("CheckRunLockInvariants: lastec=" + lastEventCode + ", lastAct=" + lastActive + ", lastPhase=" + lastRunPhase); |
390 | if(throwIt) | 390 | if(throwIt) |
391 | throw new Exception("CheckRunLockInvariants: eventcode=" + ec.ToString() + ", active=" + active.ToString()); | 391 | throw new Exception("CheckRunLockInvariants: eventcode=" + ec.ToString() + ", active=" + active.ToString()); |
392 | } | 392 | } |
@@ -767,6 +767,11 @@ namespace OpenSim.Region.ScriptEngine.Yengine | |||
767 | // vars to their initial values. | 767 | // vars to their initial values. |
768 | doGblInit = true; | 768 | doGblInit = true; |
769 | 769 | ||
770 | // Throw away all its stack frames. | ||
771 | // If the script is resetting itself, there shouldn't be any stack frames. | ||
772 | // If the script is being reset by something else, we throw them away cuz we want to start from the beginning of an event handler. | ||
773 | stackFrames = null; | ||
774 | |||
770 | // Set script to 'default' state and queue call to its | 775 | // Set script to 'default' state and queue call to its |
771 | // 'state_entry()' event handler. | 776 | // 'state_entry()' event handler. |
772 | m_RunOnePhase = "ResetLocked: posting default:state_entry() event"; | 777 | m_RunOnePhase = "ResetLocked: posting default:state_entry() event"; |