aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorUbitUmarov2019-11-10 00:03:39 +0000
committerUbitUmarov2019-11-10 00:03:39 +0000
commit727216044bb6a73fcded7bb7f13f3a050b265d3c (patch)
treed1b7393a27168b61464c5589b3d0295c2e123760 /OpenSim
parentterraforming changes: make sliders work, remove some brushs, etc. Feedback ne... (diff)
downloadopensim-SC-727216044bb6a73fcded7bb7f13f3a050b265d3c.zip
opensim-SC-727216044bb6a73fcded7bb7f13f3a050b265d3c.tar.gz
opensim-SC-727216044bb6a73fcded7bb7f13f3a050b265d3c.tar.bz2
opensim-SC-727216044bb6a73fcded7bb7f13f3a050b265d3c.tar.xz
terraforming changes: missing file
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs19
1 files changed, 4 insertions, 15 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index d4cbbce..5d291d5 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -5315,7 +5315,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5315 ITerrainModule tm = m_ScriptEngine.World.RequestModuleInterface<ITerrainModule>(); 5315 ITerrainModule tm = m_ScriptEngine.World.RequestModuleInterface<ITerrainModule>();
5316 if (tm != null) 5316 if (tm != null)
5317 { 5317 {
5318 tm.ModifyTerrain(m_host.OwnerID, m_host.AbsolutePosition, (byte) brush, (byte) action, m_host.OwnerID); 5318 tm.ModifyTerrain(m_host.OwnerID, m_host.AbsolutePosition, (byte) brush, (byte) action);
5319 } 5319 }
5320 } 5320 }
5321 5321
@@ -5765,17 +5765,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5765 { 5765 {
5766 m_host.AddScriptLPS(1); 5766 m_host.AddScriptLPS(1);
5767 5767
5768 LSL_Vector SunDoubleVector3; 5768 Vector3 sun = World.RegionInfo.RegionSettings.SunVector;
5769 Vector3 SunFloatVector3; 5769 return new LSL_Vector(sun);
5770
5771 // sunPosition estate setting is set in OpenSim.Region.CoreModules.SunModule
5772 // have to convert from Vector3 (float) to LSL_Vector (double)
5773 SunFloatVector3 = World.RegionInfo.RegionSettings.SunVector;
5774 SunDoubleVector3.x = (double)SunFloatVector3.X;
5775 SunDoubleVector3.y = (double)SunFloatVector3.Y;
5776 SunDoubleVector3.z = (double)SunFloatVector3.Z;
5777
5778 return SunDoubleVector3;
5779 } 5770 }
5780 5771
5781 public LSL_Vector llGetTextureOffset(int face) 5772 public LSL_Vector llGetTextureOffset(int face)
@@ -14540,9 +14531,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
14540 ret.Add(new LSL_Integer(0)); 14531 ret.Add(new LSL_Integer(0));
14541 break; 14532 break;
14542 case ScriptBaseClass.OBJECT_ATTACHED_SLOTS_AVAILABLE: 14533 case ScriptBaseClass.OBJECT_ATTACHED_SLOTS_AVAILABLE:
14543 if (Attachments == null) 14534 ret.Add(new LSL_Integer(38 - av.GetAttachmentsCount()));
14544 Attachments = av.GetAttachments();
14545 ret.Add(new LSL_Integer(38 - Attachments.Count));
14546 break; 14535 break;
14547 case ScriptBaseClass.OBJECT_CREATION_TIME: 14536 case ScriptBaseClass.OBJECT_CREATION_TIME:
14548 ret.Add(new LSL_String("")); 14537 ret.Add(new LSL_String(""));