diff options
author | Melanie Thielker | 2008-09-09 01:24:58 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-09-09 01:24:58 +0000 |
commit | 3e1441afe1972a153b442bc30dbcf0ee28e0a41f (patch) | |
tree | 4370b53b27af86a29b2f9707a9647b83e683ccfb /OpenSim/Region/ScriptEngine/Shared | |
parent | Fix string -> int cast to variable (diff) | |
download | opensim-SC-3e1441afe1972a153b442bc30dbcf0ee28e0a41f.zip opensim-SC-3e1441afe1972a153b442bc30dbcf0ee28e0a41f.tar.gz opensim-SC-3e1441afe1972a153b442bc30dbcf0ee28e0a41f.tar.bz2 opensim-SC-3e1441afe1972a153b442bc30dbcf0ee28e0a41f.tar.xz |
Fix state xxx within state xxx itself triggering a state "change" to
same state
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs | 3 |
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 }, |