aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-04-06 18:57:50 +0100
committerJustin Clark-Casey (justincc)2011-04-06 18:57:50 +0100
commit63533412f882fd55c0c40989d97f8a8262bc4e3c (patch)
tree4091a21cf52762e5227f1771d2017f762c451dab /OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
parentAdd method doc to some land bitmap methods in ILandObject. (diff)
downloadopensim-SC_OLD-63533412f882fd55c0c40989d97f8a8262bc4e3c.zip
opensim-SC_OLD-63533412f882fd55c0c40989d97f8a8262bc4e3c.tar.gz
opensim-SC_OLD-63533412f882fd55c0c40989d97f8a8262bc4e3c.tar.bz2
opensim-SC_OLD-63533412f882fd55c0c40989d97f8a8262bc4e3c.tar.xz
Improve previous ILandObject method doc.
For test code, take a part name prefix when creating objects, so that these can be more easily identified in the logs
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
index abc7a3a..bfab7b8 100644
--- a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
+++ b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
@@ -612,6 +612,10 @@ namespace OpenSim.Region.CoreModules.World.Land
612 { 612 {
613 if (landBitmap[x, y]) 613 if (landBitmap[x, y])
614 { 614 {
615// m_log.DebugFormat(
616// "[LAND MANAGEMENT MODULE]: Registering parcel {0} for land co-ord ({1}, {2}) on {3}",
617// new_land.LandData.Name, x, y, m_scene.RegionInfo.RegionName);
618
615 m_landIDList[x, y] = newLandLocalID; 619 m_landIDList[x, y] = newLandLocalID;
616 } 620 }
617 } 621 }
@@ -741,8 +745,16 @@ namespace OpenSim.Region.CoreModules.World.Land
741 // Corner case. If an autoreturn happens during sim startup 745 // Corner case. If an autoreturn happens during sim startup
742 // we will come here with the list uninitialized 746 // we will come here with the list uninitialized
743 // 747 //
748 int landId = m_landIDList[x, y];
749
750// if (landId == 0)
751// m_log.DebugFormat(
752// "[LAND MANAGEMENT MODULE]: No land object found at ({0}, {1}) on {2}",
753// x, y, m_scene.RegionInfo.RegionName);
754
744 if (m_landList.ContainsKey(m_landIDList[x, y])) 755 if (m_landList.ContainsKey(m_landIDList[x, y]))
745 return m_landList[m_landIDList[x, y]]; 756 return m_landList[m_landIDList[x, y]];
757
746 return null; 758 return null;
747 } 759 }
748 } 760 }