Add YEngine support for ScriptDelayFactor

Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>
0.9.1.0-post-fixes
mewtwo0641 2018-03-17 01:47:55 -05:00 committed by UbitUmarov
parent 50627304a6
commit 4e4d687f3f
1 changed files with 4 additions and 0 deletions

View File

@ -61,6 +61,10 @@ namespace OpenSim.Region.ScriptEngine.Yengine
protected override void ScriptSleep(int ms) protected override void ScriptSleep(int ms)
{ {
ms = (int)((float)ms * m_ScriptDelayFactor);
if (ms == 0)
return;
inst.Sleep(ms); inst.Sleep(ms);
} }