diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index 691b67f..3b13d06 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |||
@@ -1310,7 +1310,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
1310 | 1310 | ||
1311 | public void osParcelSetDetails(LSL_Vector pos, LSL_List rules) | 1311 | public void osParcelSetDetails(LSL_Vector pos, LSL_List rules) |
1312 | { | 1312 | { |
1313 | CheckThreatLevel(ThreatLevel.High, "osParcelSetDetails"); | 1313 | const string functionName = "osParcelSetDetails"; |
1314 | CheckThreatLevel(ThreatLevel.High, functionName); | ||
1315 | OSSLDeprecated(functionName, "osSetParcelDetails"); | ||
1316 | SetParcelDetails(pos, rules, functionName); | ||
1317 | } | ||
1318 | public void osSetParcelDetails(LSL_Vector pos, LSL_List rules) | ||
1319 | { | ||
1320 | const string functionName = "osSetParcelDetails"; | ||
1321 | CheckThreatLevel(ThreatLevel.High, functionName); | ||
1322 | SetParcelDetails(pos, rules, functionName); | ||
1323 | } | ||
1324 | private void SetParcelDetails(LSL_Vector pos, LSL_List rules, string functionName) | ||
1325 | { | ||
1314 | m_host.AddScriptLPS(1); | 1326 | m_host.AddScriptLPS(1); |
1315 | 1327 | ||
1316 | // Get a reference to the land data and make sure the owner of the script | 1328 | // Get a reference to the land data and make sure the owner of the script |
@@ -1349,13 +1361,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
1349 | break; | 1361 | break; |
1350 | 1362 | ||
1351 | case 2: | 1363 | case 2: |
1352 | CheckThreatLevel(ThreatLevel.VeryHigh, "osParcelSetDetails"); | 1364 | CheckThreatLevel(ThreatLevel.VeryHigh, functionName); |
1353 | if (UUID.TryParse(arg , out uuid)) | 1365 | if (UUID.TryParse(arg , out uuid)) |
1354 | newLand.OwnerID = uuid; | 1366 | newLand.OwnerID = uuid; |
1355 | break; | 1367 | break; |
1356 | 1368 | ||
1357 | case 3: | 1369 | case 3: |
1358 | CheckThreatLevel(ThreatLevel.VeryHigh, "osParcelSetDetails"); | 1370 | CheckThreatLevel(ThreatLevel.VeryHigh, functionName); |
1359 | if (UUID.TryParse(arg , out uuid)) | 1371 | if (UUID.TryParse(arg , out uuid)) |
1360 | newLand.GroupID = uuid; | 1372 | newLand.GroupID = uuid; |
1361 | break; | 1373 | break; |