diff options
author | Justin Clark-Casey (justincc) | 2012-02-24 04:08:59 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-02-24 04:08:59 +0000 |
commit | fe229f10e65ca979a127b316f75bb48fc7d19aa2 (patch) | |
tree | 50d511e569c5c35b31bf82d3c73311dbc6ff5759 | |
parent | llLinkSitTarget implementation http://wiki.secondlife.com/wiki/LlLinkSitTarget (diff) | |
download | opensim-SC-fe229f10e65ca979a127b316f75bb48fc7d19aa2.zip opensim-SC-fe229f10e65ca979a127b316f75bb48fc7d19aa2.tar.gz opensim-SC-fe229f10e65ca979a127b316f75bb48fc7d19aa2.tar.bz2 opensim-SC-fe229f10e65ca979a127b316f75bb48fc7d19aa2.tar.xz |
In osSetSpeed(), if no avatar for a uuid is found then don't attempt to set speed.
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index c55e2ae..ff1f5fd 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |||
@@ -2740,7 +2740,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
2740 | CheckThreatLevel(ThreatLevel.Moderate, "osSetSpeed"); | 2740 | CheckThreatLevel(ThreatLevel.Moderate, "osSetSpeed"); |
2741 | m_host.AddScriptLPS(1); | 2741 | m_host.AddScriptLPS(1); |
2742 | ScenePresence avatar = World.GetScenePresence(new UUID(UUID)); | 2742 | ScenePresence avatar = World.GetScenePresence(new UUID(UUID)); |
2743 | avatar.SpeedModifier = (float)SpeedModifier; | 2743 | |
2744 | if (avatar != null) | ||
2745 | avatar.SpeedModifier = (float)SpeedModifier; | ||
2744 | } | 2746 | } |
2745 | 2747 | ||
2746 | public void osKickAvatar(string FirstName,string SurName,string alert) | 2748 | public void osKickAvatar(string FirstName,string SurName,string alert) |