aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs18
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 145c058..ecd2d6f 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
@@ -1317,7 +1317,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1317 1317
1318 public void osParcelSetDetails(LSL_Vector pos, LSL_List rules) 1318 public void osParcelSetDetails(LSL_Vector pos, LSL_List rules)
1319 { 1319 {
1320 CheckThreatLevel(ThreatLevel.High, "osParcelSetDetails"); 1320 const string functionName = "osParcelSetDetails";
1321 CheckThreatLevel(ThreatLevel.High, functionName);
1322 OSSLDeprecated(functionName, "osSetParcelDetails");
1323 SetParcelDetails(pos, rules, functionName);
1324 }
1325 public void osSetParcelDetails(LSL_Vector pos, LSL_List rules)
1326 {
1327 const string functionName = "osSetParcelDetails";
1328 CheckThreatLevel(ThreatLevel.High, functionName);
1329 SetParcelDetails(pos, rules, functionName);
1330 }
1331 private void SetParcelDetails(LSL_Vector pos, LSL_List rules, string functionName)
1332 {
1321 m_host.AddScriptLPS(1); 1333 m_host.AddScriptLPS(1);
1322 1334
1323 // Get a reference to the land data and make sure the owner of the script 1335 // Get a reference to the land data and make sure the owner of the script
@@ -1356,13 +1368,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1356 break; 1368 break;
1357 1369
1358 case 2: 1370 case 2:
1359 CheckThreatLevel(ThreatLevel.VeryHigh, "osParcelSetDetails"); 1371 CheckThreatLevel(ThreatLevel.VeryHigh, functionName);
1360 if (UUID.TryParse(arg , out uuid)) 1372 if (UUID.TryParse(arg , out uuid))
1361 newLand.OwnerID = uuid; 1373 newLand.OwnerID = uuid;
1362 break; 1374 break;
1363 1375
1364 case 3: 1376 case 3:
1365 CheckThreatLevel(ThreatLevel.VeryHigh, "osParcelSetDetails"); 1377 CheckThreatLevel(ThreatLevel.VeryHigh, functionName);
1366 if (UUID.TryParse(arg , out uuid)) 1378 if (UUID.TryParse(arg , out uuid))
1367 newLand.GroupID = uuid; 1379 newLand.GroupID = uuid;
1368 break; 1380 break;