diff options
author | Melanie | 2012-01-15 14:49:32 +0100 |
---|---|---|
committer | Melanie | 2012-01-15 14:49:32 +0100 |
commit | 068b8e1f9b3f754426e76e17cb926fc1cd5d9dad (patch) | |
tree | 6dab35dd705c972dd48bc6f1fa2f87a7696fc350 | |
parent | Fix merge (diff) | |
download | opensim-SC-068b8e1f9b3f754426e76e17cb926fc1cd5d9dad.zip opensim-SC-068b8e1f9b3f754426e76e17cb926fc1cd5d9dad.tar.gz opensim-SC-068b8e1f9b3f754426e76e17cb926fc1cd5d9dad.tar.bz2 opensim-SC-068b8e1f9b3f754426e76e17cb926fc1cd5d9dad.tar.xz |
Disable using an agent ID to clone NPCs. The griefing potential is too great
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index 78c3fa0..c343e93 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |||
@@ -2116,13 +2116,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
2116 | { | 2116 | { |
2117 | AvatarAppearance appearance = null; | 2117 | AvatarAppearance appearance = null; |
2118 | 2118 | ||
2119 | UUID id; | 2119 | // UUID id; |
2120 | if (UUID.TryParse(notecard, out id)) | 2120 | // if (UUID.TryParse(notecard, out id)) |
2121 | { | 2121 | // { |
2122 | ScenePresence clonePresence = World.GetScenePresence(id); | 2122 | // ScenePresence clonePresence = World.GetScenePresence(id); |
2123 | if (clonePresence != null) | 2123 | // if (clonePresence != null) |
2124 | appearance = clonePresence.Appearance; | 2124 | // appearance = clonePresence.Appearance; |
2125 | } | 2125 | // } |
2126 | 2126 | ||
2127 | if (appearance == null) | 2127 | if (appearance == null) |
2128 | { | 2128 | { |