aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api
diff options
context:
space:
mode:
authorMelanie2011-05-14 21:09:52 +0100
committerMelanie2011-05-14 21:09:52 +0100
commit37a7b8786248e3af9774b8051dc29001b49179bd (patch)
tree18f5ae3490fe16ddf906482ef578bb590291d592 /OpenSim/Region/ScriptEngine/Shared/Api
parentGlobally throttle script channel 0 comms to 5/s with 10s burst to prevent lag (diff)
parentAlso changed a couple of messages in WebUtil from Wanr/Info to Debug. (diff)
downloadopensim-SC_OLD-37a7b8786248e3af9774b8051dc29001b49179bd.zip
opensim-SC_OLD-37a7b8786248e3af9774b8051dc29001b49179bd.tar.gz
opensim-SC_OLD-37a7b8786248e3af9774b8051dc29001b49179bd.tar.bz2
opensim-SC_OLD-37a7b8786248e3af9774b8051dc29001b49179bd.tar.xz
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs23
1 files changed, 4 insertions, 19 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 1f60a7b..48a7953 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -10587,31 +10587,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
10587 public LSL_Integer llGetParcelMaxPrims(LSL_Vector pos, int sim_wide) 10587 public LSL_Integer llGetParcelMaxPrims(LSL_Vector pos, int sim_wide)
10588 { 10588 {
10589 m_host.AddScriptLPS(1); 10589 m_host.AddScriptLPS(1);
10590 // Alondria: This currently just is utilizing the normal grid's 0.22 prims/m2 calculation
10591 // Which probably will be irrelevent in OpenSim....
10592 LandData land = World.GetLandData((float)pos.x, (float)pos.y);
10593 10590
10594 float bonusfactor = (float)World.RegionInfo.RegionSettings.ObjectBonus; 10591 ILandObject lo = World.LandChannel.GetLandObject((float)pos.x, (float)pos.y);
10595 10592
10596 if (land == null) 10593 if (lo == null)
10597 {
10598 return 0; 10594 return 0;
10599 }
10600 10595
10601 if (sim_wide != 0) 10596 if (sim_wide != 0)
10602 { 10597 return lo.GetSimulatorMaxPrimCount();
10603 decimal v = land.SimwideArea * (decimal)(0.22) * (decimal)bonusfactor;
10604
10605 return (int)v;
10606 }
10607
10608 else 10598 else
10609 { 10599 return lo.GetParcelMaxPrimCount();
10610 decimal v = land.Area * (decimal)(0.22) * (decimal)bonusfactor;
10611
10612 return (int)v;
10613 }
10614
10615 } 10600 }
10616 10601
10617 public LSL_List llGetParcelDetails(LSL_Vector pos, LSL_List param) 10602 public LSL_List llGetParcelDetails(LSL_Vector pos, LSL_List param)