aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs14
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs7
2 files changed, 13 insertions, 8 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index d4911d7..aa22b2b 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -5721,13 +5721,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5721 if (remain < 7) 5721 if (remain < 7)
5722 return; 5722 return;
5723 5723
5724 LSL_Types.LSLInteger flexi = new LSL_Types.LSLInteger(rules.Data[idx++].ToString()); 5724 bool flexi = (LSL_Types.LSLInteger)rules.Data[idx++];
5725 int softness = Convert.ToInt32(rules.Data[idx++]); 5725 int softness = (LSL_Types.LSLInteger)rules.Data[idx++];
5726 float gravity = (float)Convert.ToDouble(rules.Data[idx++]); 5726 float gravity = (float)(LSL_Types.LSLFloat)rules.Data[idx++];
5727 float friction = (float)Convert.ToDouble(rules.Data[idx++]); 5727 float friction = (float)(LSL_Types.LSLFloat)rules.Data[idx++];
5728 float wind = (float)Convert.ToDouble(rules.Data[idx++]); 5728 float wind = (float)(LSL_Types.LSLFloat)rules.Data[idx++];
5729 float tension = (float)Convert.ToDouble(rules.Data[idx++]); 5729 float tension = (float)(LSL_Types.LSLFloat)rules.Data[idx++];
5730 LSL_Types.Vector3 force =new LSL_Types.Vector3(rules.Data[idx++].ToString()); 5730 LSL_Types.Vector3 force = (LSL_Types.Vector3)rules.Data[idx++];
5731 5731
5732 SetFlexi(part, flexi, softness, gravity, friction, wind, tension, force); 5732 SetFlexi(part, flexi, softness, gravity, friction, wind, tension, force);
5733 5733
diff --git a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
index 3e63808..85abdb0 100644
--- a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
@@ -1569,9 +1569,14 @@ namespace OpenSim.Region.ScriptEngine.Shared
1569 1569
1570 #region Operators 1570 #region Operators
1571 1571
1572 static public explicit operator float(LSLFloat f)
1573 {
1574 return (float)f.value;
1575 }
1576
1572 static public explicit operator int(LSLFloat f) 1577 static public explicit operator int(LSLFloat f)
1573 { 1578 {
1574 return (int)f.value; 1579 return (int)f.value;
1575 } 1580 }
1576 1581
1577 static public explicit operator uint(LSLFloat f) 1582 static public explicit operator uint(LSLFloat f)