From 4e4d687f3fbb4caac2d37f9247d37bfc84ee2902 Mon Sep 17 00:00:00 2001 From: mewtwo0641 Date: Sat, 17 Mar 2018 01:47:55 -0500 Subject: [PATCH] Add YEngine support for ScriptDelayFactor Signed-off-by: UbitUmarov --- OpenSim/Region/ScriptEngine/YEngine/XMRInstBackend.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OpenSim/Region/ScriptEngine/YEngine/XMRInstBackend.cs b/OpenSim/Region/ScriptEngine/YEngine/XMRInstBackend.cs index 833211f81d..332085f4e0 100644 --- a/OpenSim/Region/ScriptEngine/YEngine/XMRInstBackend.cs +++ b/OpenSim/Region/ScriptEngine/YEngine/XMRInstBackend.cs @@ -61,6 +61,10 @@ namespace OpenSim.Region.ScriptEngine.Yengine protected override void ScriptSleep(int ms) { + ms = (int)((float)ms * m_ScriptDelayFactor); + if (ms == 0) + return; + inst.Sleep(ms); }