aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api
diff options
context:
space:
mode:
authorMelanie2012-01-12 23:04:38 +0100
committerMelanie2012-01-12 23:04:38 +0100
commitaa2cde2493d5cd01686ab29e25be8f110112a860 (patch)
tree41dc0df2e989eeb6d85670690eaa1e5ab42525b2 /OpenSim/Region/ScriptEngine/Shared/Api
parentMerge branch 'master' into careminster (diff)
downloadopensim-SC_OLD-aa2cde2493d5cd01686ab29e25be8f110112a860.zip
opensim-SC_OLD-aa2cde2493d5cd01686ab29e25be8f110112a860.tar.gz
opensim-SC_OLD-aa2cde2493d5cd01686ab29e25be8f110112a860.tar.bz2
opensim-SC_OLD-aa2cde2493d5cd01686ab29e25be8f110112a860.tar.xz
Disable unowned NPCs
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs3
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)