aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/NHibernate/LLVector3UserType.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-12-01 18:42:14 +0000
committerJustin Clarke Casey2008-12-01 18:42:14 +0000
commit80520206fcd4c8c85eb28b4800c42136365b164d (patch)
tree9a5f583028198b44b0dc98b409fa410a4dab6418 /OpenSim/Data/NHibernate/LLVector3UserType.cs
parent* Temporarily revert nhibernate.dll to the previous one (diff)
downloadopensim-SC_OLD-80520206fcd4c8c85eb28b4800c42136365b164d.zip
opensim-SC_OLD-80520206fcd4c8c85eb28b4800c42136365b164d.tar.gz
opensim-SC_OLD-80520206fcd4c8c85eb28b4800c42136365b164d.tar.bz2
opensim-SC_OLD-80520206fcd4c8c85eb28b4800c42136365b164d.tar.xz
* Unforunately it turns out not to be that simple. Revert the rest of r7560 for now.
Diffstat (limited to '')
-rw-r--r--OpenSim/Data/NHibernate/LLVector3UserType.cs7
1 files changed, 2 insertions, 5 deletions
diff --git a/OpenSim/Data/NHibernate/LLVector3UserType.cs b/OpenSim/Data/NHibernate/LLVector3UserType.cs
index 25a2bc6..cdd15ec 100644
--- a/OpenSim/Data/NHibernate/LLVector3UserType.cs
+++ b/OpenSim/Data/NHibernate/LLVector3UserType.cs
@@ -74,12 +74,9 @@ namespace OpenSim.Data.NHibernate
74 int x = rs.GetOrdinal(names[0]); 74 int x = rs.GetOrdinal(names[0]);
75 int y = rs.GetOrdinal(names[1]); 75 int y = rs.GetOrdinal(names[1]);
76 int z = rs.GetOrdinal(names[2]); 76 int z = rs.GetOrdinal(names[2]);
77 if (!rs.IsDBNull(x) && !rs.IsDBNull(y) && !rs.IsDBNull(z)) 77 if (!rs.IsDBNull(x))
78 { 78 {
79 float X = (Single)Convert.ToDouble(rs[x].ToString()); 79 vector = new Vector3((Single)rs[x], (Single)rs[y], (Single)rs[z]);
80 float Y = (Single)Convert.ToDouble(rs[y].ToString());
81 float Z = (Single)Convert.ToDouble(rs[z].ToString());
82 vector = new Vector3(X, Y, Z);
83 } 80 }
84 return vector; 81 return vector;
85 } 82 }