aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMelanie Thielker2008-09-09 01:24:58 +0000
committerMelanie Thielker2008-09-09 01:24:58 +0000
commit3e1441afe1972a153b442bc30dbcf0ee28e0a41f (patch)
tree4370b53b27af86a29b2f9707a9647b83e683ccfb
parentFix string -> int cast to variable (diff)
downloadopensim-SC_OLD-3e1441afe1972a153b442bc30dbcf0ee28e0a41f.zip
opensim-SC_OLD-3e1441afe1972a153b442bc30dbcf0ee28e0a41f.tar.gz
opensim-SC_OLD-3e1441afe1972a153b442bc30dbcf0ee28e0a41f.tar.bz2
opensim-SC_OLD-3e1441afe1972a153b442bc30dbcf0ee28e0a41f.tar.xz
Fix state xxx within state xxx itself triggering a state "change" to
same state
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
index 24813b0..97c79b5 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
@@ -413,6 +413,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
413 413
414 public void SetState(string state) 414 public void SetState(string state)
415 { 415 {
416 if (state == State)
417 return;
418
416 PostEvent(new EventParams("state_exit", new Object[0], 419 PostEvent(new EventParams("state_exit", new Object[0],
417 new DetectParams[0])); 420 new DetectParams[0]));
418 PostEvent(new EventParams("state", new Object[] { state }, 421 PostEvent(new EventParams("state", new Object[] { state },