aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
authorMelanie Thielker2008-08-28 14:08:09 +0000
committerMelanie Thielker2008-08-28 14:08:09 +0000
commit086284da5592eaa23bf2846b4bd8231ba2d5995d (patch)
tree8c8f4317b4fb3b67182655d7263d8fb07adfe51b /OpenSim/Region/ScriptEngine
parentFix for Bug #2065: New check out crashes on sqlite migration (diff)
downloadopensim-SC-086284da5592eaa23bf2846b4bd8231ba2d5995d.zip
opensim-SC-086284da5592eaa23bf2846b4bd8231ba2d5995d.tar.gz
opensim-SC-086284da5592eaa23bf2846b4bd8231ba2d5995d.tar.bz2
opensim-SC-086284da5592eaa23bf2846b4bd8231ba2d5995d.tar.xz
Thannk you, Ralphos, for a patch the corrects an improper cast in
llSetPrimitiveParams
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 800fc67..b48edfb 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -5735,13 +5735,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5735 case (int)ScriptBaseClass.PRIM_POINT_LIGHT: 5735 case (int)ScriptBaseClass.PRIM_POINT_LIGHT:
5736 if (remain < 5) 5736 if (remain < 5)
5737 return; 5737 return;
5738 int light = Convert.ToInt32(rules.Data[idx++]); 5738 LSL_Types.LSLInteger light = new LSL_Types.LSLInteger(rules.Data[idx++].ToString());
5739 LSL_Types.Vector3 lightcolor =new LSL_Types.Vector3(rules.Data[idx++].ToString()); 5739 LSL_Types.Vector3 lightcolor =new LSL_Types.Vector3(rules.Data[idx++].ToString());
5740 float intensity = (float)Convert.ToDouble(rules.Data[idx++]); 5740 float intensity = (float)Convert.ToDouble(rules.Data[idx++]);
5741 float radius = (float)Convert.ToDouble(rules.Data[idx++]); 5741 float radius = (float)Convert.ToDouble(rules.Data[idx++]);
5742 float falloff = (float)Convert.ToDouble(rules.Data[idx++]); 5742 float falloff = (float)Convert.ToDouble(rules.Data[idx++]);
5743 5743
5744 SetPointLight(part, (light == 1), lightcolor, intensity, radius, falloff); 5744 SetPointLight(part, light, lightcolor, intensity, radius, falloff);
5745 5745
5746 break; 5746 break;
5747 case (int)ScriptBaseClass.PRIM_GLOW: 5747 case (int)ScriptBaseClass.PRIM_GLOW: