diff options
author | Melanie | 2012-01-12 23:04:38 +0100 |
---|---|---|
committer | Melanie | 2012-01-12 23:04:38 +0100 |
commit | aa2cde2493d5cd01686ab29e25be8f110112a860 (patch) | |
tree | 41dc0df2e989eeb6d85670690eaa1e5ab42525b2 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation | |
parent | Merge branch 'master' into careminster (diff) | |
download | opensim-SC-aa2cde2493d5cd01686ab29e25be8f110112a860.zip opensim-SC-aa2cde2493d5cd01686ab29e25be8f110112a860.tar.gz opensim-SC-aa2cde2493d5cd01686ab29e25be8f110112a860.tar.bz2 opensim-SC-aa2cde2493d5cd01686ab29e25be8f110112a860.tar.xz |
Disable unowned NPCs
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index 62cd75f..e3a750d 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |||
@@ -2106,6 +2106,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
2106 | 2106 | ||
2107 | private LSL_Key NpcCreate(string firstname, string lastname, LSL_Vector position, string notecard, bool owned) | 2107 | private LSL_Key NpcCreate(string firstname, string lastname, LSL_Vector position, string notecard, bool owned) |
2108 | { | 2108 | { |
2109 | if (!owned) | ||
2110 | OSSL_Error("Unowned NPCs are unsupported"); | ||
2111 | |||
2109 | string groupTitle = String.Empty; | 2112 | string groupTitle = String.Empty; |
2110 | 2113 | ||
2111 | if (firstname != String.Empty || lastname != String.Empty) | 2114 | if (firstname != String.Empty || lastname != String.Empty) |