diff options
author | UbitUmarov | 2018-09-04 22:19:30 +0100 |
---|---|---|
committer | UbitUmarov | 2018-09-04 22:19:30 +0100 |
commit | e6615a193dcfe36238708febdeda34b03e1bbf1e (patch) | |
tree | c4c81501c3a286a25b73051846ea66bfb56a98c3 /OpenSim/Region/ScriptEngine/YEngine | |
parent | Add YEngine support for ScriptDelayFactor (diff) | |
download | opensim-SC-e6615a193dcfe36238708febdeda34b03e1bbf1e.zip opensim-SC-e6615a193dcfe36238708febdeda34b03e1bbf1e.tar.gz opensim-SC-e6615a193dcfe36238708febdeda34b03e1bbf1e.tar.bz2 opensim-SC-e6615a193dcfe36238708febdeda34b03e1bbf1e.tar.xz |
a few changes to ScriptSleep() functions
Diffstat (limited to 'OpenSim/Region/ScriptEngine/YEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/YEngine/XMRInstBackend.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/YEngine/XMRInstBackend.cs b/OpenSim/Region/ScriptEngine/YEngine/XMRInstBackend.cs index 332085f..b6f8874 100644 --- a/OpenSim/Region/ScriptEngine/YEngine/XMRInstBackend.cs +++ b/OpenSim/Region/ScriptEngine/YEngine/XMRInstBackend.cs | |||
@@ -61,8 +61,8 @@ 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); | 64 | ms = (int)(ms * m_ScriptDelayFactor); |
65 | if (ms == 0) | 65 | if (ms < 10) |
66 | return; | 66 | return; |
67 | 67 | ||
68 | inst.Sleep(ms); | 68 | inst.Sleep(ms); |