aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
diff options
context:
space:
mode:
authorTeravus Ovares2008-04-29 12:09:55 +0000
committerTeravus Ovares2008-04-29 12:09:55 +0000
commit06a367be194b3118469ae47d763256e5898604bc (patch)
tree9b1e74b52580e560cbb34fa3b9ceeed8c4ca031f /OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
parent* Lash up mantis 1064 - nre thrown in LandObject.sendLandObjectOwners() (diff)
downloadopensim-SC_OLD-06a367be194b3118469ae47d763256e5898604bc.zip
opensim-SC_OLD-06a367be194b3118469ae47d763256e5898604bc.tar.gz
opensim-SC_OLD-06a367be194b3118469ae47d763256e5898604bc.tar.bz2
opensim-SC_OLD-06a367be194b3118469ae47d763256e5898604bc.tar.xz
* Applying melanie's List2Vector and List2Rot patch. Added a routine in the Quaternion constructors to catch 0,0,0,0 quaternions and convert them to 0,0,0,1 (as 0,0,0,0 is implicitly converted to 0,0,0,1 in LSL and will crash libsl if left which will in turn crash the simulator)
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
index 09be26a..4e7d5ef 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
@@ -2979,7 +2979,7 @@ namespace OpenSim.Region.ScriptEngine.Common
2979 } 2979 }
2980 else 2980 else
2981 { 2981 {
2982 return new LSL_Types.Vector3(0, 0, 0); 2982 return new LSL_Types.Vector3(src.Data[index].ToString());
2983 } 2983 }
2984 } 2984 }
2985 2985
@@ -3000,7 +3000,7 @@ namespace OpenSim.Region.ScriptEngine.Common
3000 } 3000 }
3001 else 3001 else
3002 { 3002 {
3003 return new LSL_Types.Quaternion(0, 0, 0, 1); 3003 return new LSL_Types.Quaternion(src.Data[index].ToString());
3004 } 3004 }
3005 } 3005 }
3006 3006