aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/YEngine/XMRInstBackend.cs
diff options
context:
space:
mode:
authormewtwo06412018-03-17 01:47:55 -0500
committerUbitUmarov2018-09-04 21:38:09 +0100
commit4e4d687f3fbb4caac2d37f9247d37bfc84ee2902 (patch)
tree970189efecfcc65e4a1718c8977f261b5a799759 /OpenSim/Region/ScriptEngine/YEngine/XMRInstBackend.cs
parentavoid using new c# sintaxe that will fail on older compilers (diff)
downloadopensim-SC-4e4d687f3fbb4caac2d37f9247d37bfc84ee2902.zip
opensim-SC-4e4d687f3fbb4caac2d37f9247d37bfc84ee2902.tar.gz
opensim-SC-4e4d687f3fbb4caac2d37f9247d37bfc84ee2902.tar.bz2
opensim-SC-4e4d687f3fbb4caac2d37f9247d37bfc84ee2902.tar.xz
Add YEngine support for ScriptDelayFactor
Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>
Diffstat (limited to 'OpenSim/Region/ScriptEngine/YEngine/XMRInstBackend.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/YEngine/XMRInstBackend.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/YEngine/XMRInstBackend.cs b/OpenSim/Region/ScriptEngine/YEngine/XMRInstBackend.cs
index 833211f..332085f 100644
--- a/OpenSim/Region/ScriptEngine/YEngine/XMRInstBackend.cs
+++ b/OpenSim/Region/ScriptEngine/YEngine/XMRInstBackend.cs
@@ -61,6 +61,10 @@ namespace OpenSim.Region.ScriptEngine.Yengine
61 61
62 protected override void ScriptSleep(int ms) 62 protected override void ScriptSleep(int ms)
63 { 63 {
64 ms = (int)((float)ms * m_ScriptDelayFactor);
65 if (ms == 0)
66 return;
67
64 inst.Sleep(ms); 68 inst.Sleep(ms);
65 } 69 }
66 70