aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Storage
diff options
context:
space:
mode:
authorSean Dague2008-07-07 20:12:14 +0000
committerSean Dague2008-07-07 20:12:14 +0000
commit867d72c9569e672d99dc5f50aca6b1a4f2ddf906 (patch)
treec7eed9e29967623643fa63ddec600acc2948ebb4 /OpenSim/Region/Storage
parentremove build references to what I believe to be the very old MSSQL (diff)
downloadopensim-SC_OLD-867d72c9569e672d99dc5f50aca6b1a4f2ddf906.zip
opensim-SC_OLD-867d72c9569e672d99dc5f50aca6b1a4f2ddf906.tar.gz
opensim-SC_OLD-867d72c9569e672d99dc5f50aca6b1a4f2ddf906.tar.bz2
opensim-SC_OLD-867d72c9569e672d99dc5f50aca6b1a4f2ddf906.tar.xz
change SitTarget calls from functions to properties
Diffstat (limited to 'OpenSim/Region/Storage')
-rw-r--r--OpenSim/Region/Storage/OpenSim.DataStore.MSSQL/MSSQLDataStore.cs29
1 files changed, 15 insertions, 14 deletions
diff --git a/OpenSim/Region/Storage/OpenSim.DataStore.MSSQL/MSSQLDataStore.cs b/OpenSim/Region/Storage/OpenSim.DataStore.MSSQL/MSSQLDataStore.cs
index 8db5d7d..6dfcb3c 100644
--- a/OpenSim/Region/Storage/OpenSim.DataStore.MSSQL/MSSQLDataStore.cs
+++ b/OpenSim/Region/Storage/OpenSim.DataStore.MSSQL/MSSQLDataStore.cs
@@ -557,18 +557,19 @@ namespace OpenSim.DataStore.MSSQL
557 557
558 try 558 try
559 { 559 {
560 prim.SetSitTargetLL(new LLVector3( 560 prim.SitTargetPositionLL = new LLVector3(
561 Convert.ToSingle(row["SitTargetOffsetX"]), 561 Convert.ToSingle(row["SitTargetOffsetX"]),
562 Convert.ToSingle(row["SitTargetOffsetY"]), 562 Convert.ToSingle(row["SitTargetOffsetY"]),
563 Convert.ToSingle(row["SitTargetOffsetZ"])), new LLQuaternion( 563 Convert.ToSingle(row["SitTargetOffsetZ"]));
564 Convert.ToSingle( 564 prim.SitTargetOrientationLL = new LLQuaternion(
565 row["SitTargetOrientX"]), 565 Convert.ToSingle(
566 Convert.ToSingle( 566 row["SitTargetOrientX"]),
567 row["SitTargetOrientY"]), 567 Convert.ToSingle(
568 Convert.ToSingle( 568 row["SitTargetOrientY"]),
569 row["SitTargetOrientZ"]), 569 Convert.ToSingle(
570 Convert.ToSingle( 570 row["SitTargetOrientZ"]),
571 row["SitTargetOrientW"]))); 571 Convert.ToSingle(
572 row["SitTargetOrientW"]));
572 } 573 }
573 catch (InvalidCastException) 574 catch (InvalidCastException)
574 { 575 {
@@ -628,12 +629,12 @@ namespace OpenSim.DataStore.MSSQL
628 try 629 try
629 { 630 {
630 // Sit target 631 // Sit target
631 LLVector3 sitTargetPos = prim.GetSitTargetPositionLL(); 632 LLVector3 sitTargetPos = prim.SitTargetPositionLL;
632 row["SitTargetOffsetX"] = sitTargetPos.X; 633 row["SitTargetOffsetX"] = sitTargetPos.X;
633 row["SitTargetOffsetY"] = sitTargetPos.Y; 634 row["SitTargetOffsetY"] = sitTargetPos.Y;
634 row["SitTargetOffsetZ"] = sitTargetPos.Z; 635 row["SitTargetOffsetZ"] = sitTargetPos.Z;
635 636
636 LLQuaternion sitTargetOrient = prim.GetSitTargetOrientationLL(); 637 LLQuaternion sitTargetOrient = prim.SitTargetOrientationLL;
637 row["SitTargetOrientW"] = sitTargetOrient.W; 638 row["SitTargetOrientW"] = sitTargetOrient.W;
638 row["SitTargetOrientX"] = sitTargetOrient.X; 639 row["SitTargetOrientX"] = sitTargetOrient.X;
639 row["SitTargetOrientY"] = sitTargetOrient.Y; 640 row["SitTargetOrientY"] = sitTargetOrient.Y;