diff options
-rw-r--r-- | OpenSim/Region/ScriptEngine/YEngine/XMRInstRun.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/YEngine/XMRInstRun.cs b/OpenSim/Region/ScriptEngine/YEngine/XMRInstRun.cs index 9d73a7f..1b735e3 100644 --- a/OpenSim/Region/ScriptEngine/YEngine/XMRInstRun.cs +++ b/OpenSim/Region/ScriptEngine/YEngine/XMRInstRun.cs | |||
@@ -106,6 +106,21 @@ namespace OpenSim.Region.ScriptEngine.Yengine | |||
106 | m_nextEventTime = now + m_minEventDelay; | 106 | m_nextEventTime = now + m_minEventDelay; |
107 | break; | 107 | break; |
108 | } | 108 | } |
109 | case ScriptEventCode.changed: | ||
110 | { | ||
111 | const int canignore = ~(CHANGED_SCALE | CHANGED_POSITION); | ||
112 | int change = (int)evt.Params[0]; | ||
113 | if(change == 0) // what? | ||
114 | return; | ||
115 | if((change & canignore) == 0) | ||
116 | { | ||
117 | double now = Util.GetTimeStamp(); | ||
118 | if (now < m_nextEventTime) | ||
119 | return; | ||
120 | m_nextEventTime = now + m_minEventDelay; | ||
121 | } | ||
122 | break; | ||
123 | } | ||
109 | default: | 124 | default: |
110 | break; | 125 | break; |
111 | } | 126 | } |