aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/CodeTools/LSL2CSCodeTransformer.cs2
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs6
2 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/CodeTools/LSL2CSCodeTransformer.cs b/OpenSim/Region/ScriptEngine/Shared/CodeTools/LSL2CSCodeTransformer.cs
index 0fb3574..0585f8b 100644
--- a/OpenSim/Region/ScriptEngine/Shared/CodeTools/LSL2CSCodeTransformer.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/CodeTools/LSL2CSCodeTransformer.cs
@@ -191,7 +191,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
191 Constant rca = new Constant(p, "float", "0.0"); 191 Constant rca = new Constant(p, "float", "0.0");
192 Constant rcb = new Constant(p, "float", "0.0"); 192 Constant rcb = new Constant(p, "float", "0.0");
193 Constant rcc = new Constant(p, "float", "0.0"); 193 Constant rcc = new Constant(p, "float", "0.0");
194 Constant rcd = new Constant(p, "float", "0.0"); 194 Constant rcd = new Constant(p, "float", "1.0");
195 ConstantExpression rcea = new ConstantExpression(p, rca); 195 ConstantExpression rcea = new ConstantExpression(p, rca);
196 ConstantExpression rceb = new ConstantExpression(p, rcb); 196 ConstantExpression rceb = new ConstantExpression(p, rcb);
197 ConstantExpression rcec = new ConstantExpression(p, rcc); 197 ConstantExpression rcec = new ConstantExpression(p, rcc);
diff --git a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
index d501979..9fb1e2c 100644
--- a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
@@ -339,7 +339,7 @@ namespace OpenSim.Region.ScriptEngine.Shared
339 y = (float)Quat.y; 339 y = (float)Quat.y;
340 z = (float)Quat.z; 340 z = (float)Quat.z;
341 s = (float)Quat.s; 341 s = (float)Quat.s;
342 if (x == 0 && y == 0 && z == 0 && s == 0) 342 if (s == 0 && x == 0 && y == 0 && z == 0)
343 s = 1; 343 s = 1;
344 } 344 }
345 345
@@ -349,7 +349,7 @@ namespace OpenSim.Region.ScriptEngine.Shared
349 y = Y; 349 y = Y;
350 z = Z; 350 z = Z;
351 s = S; 351 s = S;
352 if (x == 0 && y == 0 && z == 0 && s == 0) 352 if (s == 0 && x == 0 && y == 0 && z == 0)
353 s = 1; 353 s = 1;
354 } 354 }
355 355
@@ -368,7 +368,7 @@ namespace OpenSim.Region.ScriptEngine.Shared
368 res = res & Double.TryParse(tmps[1], NumberStyles.Float, Culture.NumberFormatInfo, out y); 368 res = res & Double.TryParse(tmps[1], NumberStyles.Float, Culture.NumberFormatInfo, out y);
369 res = res & Double.TryParse(tmps[2], NumberStyles.Float, Culture.NumberFormatInfo, out z); 369 res = res & Double.TryParse(tmps[2], NumberStyles.Float, Culture.NumberFormatInfo, out z);
370 res = res & Double.TryParse(tmps[3], NumberStyles.Float, Culture.NumberFormatInfo, out s); 370 res = res & Double.TryParse(tmps[3], NumberStyles.Float, Culture.NumberFormatInfo, out s);
371 if (x == 0 && y == 0 && z == 0 && s == 0) 371 if (s == 0 && x == 0 && y == 0 && z == 0)
372 s = 1; 372 s = 1;
373 } 373 }
374 374