aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDiva Canto2009-10-05 10:31:41 -0700
committerDiva Canto2009-10-05 10:31:41 -0700
commit62ea6b6383329961c820b4109af3ae943823f27b (patch)
tree16b46a5070420584684954878c6778baf753b30a
parentMore debug messages if things go wrong. (diff)
parentminor: remove mono compile warning (diff)
downloadopensim-SC-62ea6b6383329961c820b4109af3ae943823f27b.zip
opensim-SC-62ea6b6383329961c820b4109af3ae943823f27b.tar.gz
opensim-SC-62ea6b6383329961c820b4109af3ae943823f27b.tar.bz2
opensim-SC-62ea6b6383329961c820b4109af3ae943823f27b.tar.xz
Merge branch 'master' of ssh://diva@opensimulator.org/var/git/opensim
-rw-r--r--OpenSim/Data/MSSQL/MSSQLLegacyRegionData.cs20
-rw-r--r--OpenSim/Region/Physics/OdePlugin/OdePlugin.cs7
2 files changed, 12 insertions, 15 deletions
diff --git a/OpenSim/Data/MSSQL/MSSQLLegacyRegionData.cs b/OpenSim/Data/MSSQL/MSSQLLegacyRegionData.cs
index adedcce..e2ae5cb 100644
--- a/OpenSim/Data/MSSQL/MSSQLLegacyRegionData.cs
+++ b/OpenSim/Data/MSSQL/MSSQLLegacyRegionData.cs
@@ -575,7 +575,7 @@ ELSE
575 /// <returns></returns> 575 /// <returns></returns>
576 public List<LandData> LoadLandObjects(UUID regionUUID) 576 public List<LandData> LoadLandObjects(UUID regionUUID)
577 { 577 {
578 List<LandData> landDataForRegion = new List<LandData>(); 578 List<LandData> LandDataForRegion = new List<LandData>();
579 579
580 string sql = "select * from land where RegionUUID = @RegionUUID"; 580 string sql = "select * from land where RegionUUID = @RegionUUID";
581 581
@@ -588,30 +588,30 @@ ELSE
588 { 588 {
589 while (readerLandData.Read()) 589 while (readerLandData.Read())
590 { 590 {
591 landDataForRegion.Add(BuildLandData(readerLandData)); 591 LandDataForRegion.Add(BuildLandData(readerLandData));
592 } 592 }
593 } 593 }
594 } 594 }
595 595
596 //Retrieve all accesslist data for all landdata 596 //Retrieve all accesslist data for all landdata
597 foreach (LandData landData in landDataForRegion) 597 foreach (LandData LandData in LandDataForRegion)
598 { 598 {
599 sql = "select * from landaccesslist where LandUUID = @LandUUID"; 599 sql = "select * from landaccesslist where LandUUID = @LandUUID";
600 using (AutoClosingSqlCommand cmdAccessList = _Database.Query(sql)) 600 using (AutoClosingSqlCommand cmdAccessList = _Database.Query(sql))
601 { 601 {
602 cmdAccessList.Parameters.Add(_Database.CreateParameter("@LandUUID", landData.GlobalID)); 602 cmdAccessList.Parameters.Add(_Database.CreateParameter("@LandUUID", LandData.GlobalID));
603 using (SqlDataReader readerAccessList = cmdAccessList.ExecuteReader()) 603 using (SqlDataReader readerAccessList = cmdAccessList.ExecuteReader())
604 { 604 {
605 while (readerAccessList.Read()) 605 while (readerAccessList.Read())
606 { 606 {
607 landData.ParcelAccessList.Add(BuildLandAccessData(readerAccessList)); 607 LandData.ParcelAccessList.Add(BuildLandAccessData(readerAccessList));
608 } 608 }
609 } 609 }
610 } 610 }
611 } 611 }
612 612
613 //Return data 613 //Return data
614 return landDataForRegion; 614 return LandDataForRegion;
615 } 615 }
616 616
617 /// <summary> 617 /// <summary>
@@ -624,7 +624,7 @@ ELSE
624 //As the delete landaccess is already in the mysql code 624 //As the delete landaccess is already in the mysql code
625 625
626 //Delete old values 626 //Delete old values
627 RemoveLandObject(parcel.landData.GlobalID); 627 RemoveLandObject(parcel.LandData.GlobalID);
628 628
629 //Insert new values 629 //Insert new values
630 string sql = @"INSERT INTO [land] 630 string sql = @"INSERT INTO [land]
@@ -634,7 +634,7 @@ VALUES
634 634
635 using (AutoClosingSqlCommand cmd = _Database.Query(sql)) 635 using (AutoClosingSqlCommand cmd = _Database.Query(sql))
636 { 636 {
637 cmd.Parameters.AddRange(CreateLandParameters(parcel.landData, parcel.regionUUID)); 637 cmd.Parameters.AddRange(CreateLandParameters(parcel.LandData, parcel.RegionUUID));
638 638
639 cmd.ExecuteNonQuery(); 639 cmd.ExecuteNonQuery();
640 } 640 }
@@ -643,9 +643,9 @@ VALUES
643 643
644 using (AutoClosingSqlCommand cmd = _Database.Query(sql)) 644 using (AutoClosingSqlCommand cmd = _Database.Query(sql))
645 { 645 {
646 foreach (ParcelManager.ParcelAccessEntry parcelAccessEntry in parcel.landData.ParcelAccessList) 646 foreach (ParcelManager.ParcelAccessEntry parcelAccessEntry in parcel.LandData.ParcelAccessList)
647 { 647 {
648 cmd.Parameters.AddRange(CreateLandAccessParameters(parcelAccessEntry, parcel.regionUUID)); 648 cmd.Parameters.AddRange(CreateLandAccessParameters(parcelAccessEntry, parcel.RegionUUID));
649 649
650 cmd.ExecuteNonQuery(); 650 cmd.ExecuteNonQuery();
651 cmd.Parameters.Clear(); 651 cmd.Parameters.Clear();
diff --git a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs
index 0769c90..f5ab1de 100644
--- a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs
+++ b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs
@@ -3476,7 +3476,7 @@ namespace OpenSim.Region.Physics.OdePlugin
3476 public override void UnCombine(PhysicsScene pScene) 3476 public override void UnCombine(PhysicsScene pScene)
3477 { 3477 {
3478 IntPtr localGround = IntPtr.Zero; 3478 IntPtr localGround = IntPtr.Zero;
3479 float[] localHeightfield; 3479 //float[] localHeightfield;
3480 bool proceed = false; 3480 bool proceed = false;
3481 List<IntPtr> geomDestroyList = new List<IntPtr>(); 3481 List<IntPtr> geomDestroyList = new List<IntPtr>();
3482 3482
@@ -3771,16 +3771,13 @@ namespace OpenSim.Region.Physics.OdePlugin
3771 sides.Z = 0.5f; 3771 sides.Z = 0.5f;
3772 3772
3773 ds.DrawBox(ref pos, ref R, ref sides); 3773 ds.DrawBox(ref pos, ref R, ref sides);
3774
3775
3776 } 3774 }
3777 } 3775 }
3778 } 3776 }
3779 } 3777 }
3780 3778
3781 public void start(int unused) 3779 public void start(int unused)
3782 { 3780 {
3783
3784 ds.SetViewpoint(ref xyz, ref hpr); 3781 ds.SetViewpoint(ref xyz, ref hpr);
3785 } 3782 }
3786#endif 3783#endif