Fix state xxx within state xxx itself triggering a state "change" to

same state
0.6.0-stable
Melanie Thielker 2008-09-09 01:24:58 +00:00
parent 084ea99be6
commit 3e1441afe1
1 changed files with 3 additions and 0 deletions

View File

@ -413,6 +413,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
public void SetState(string state) public void SetState(string state)
{ {
if (state == State)
return;
PostEvent(new EventParams("state_exit", new Object[0], PostEvent(new EventParams("state_exit", new Object[0],
new DetectParams[0])); new DetectParams[0]));
PostEvent(new EventParams("state", new Object[] { state }, PostEvent(new EventParams("state", new Object[] { state },