aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2010-11-17 22:55:06 +0000
committerJustin Clark-Casey (justincc)2010-11-17 22:55:06 +0000
commite6eeaaea6717f68c1ad622c4fbd308917b3d1408 (patch)
treeab643c0adebf529ae5a79326def2a3bcf6a31cd0
parentMerge branch 'master' of melanie@opensimulator.org:/var/git/opensim (diff)
downloadopensim-SC_OLD-e6eeaaea6717f68c1ad622c4fbd308917b3d1408.zip
opensim-SC_OLD-e6eeaaea6717f68c1ad622c4fbd308917b3d1408.tar.gz
opensim-SC_OLD-e6eeaaea6717f68c1ad622c4fbd308917b3d1408.tar.bz2
opensim-SC_OLD-e6eeaaea6717f68c1ad622c4fbd308917b3d1408.tar.xz
minor: add some method comments
-rw-r--r--OpenSim/Framework/Util.cs8
-rw-r--r--OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs9
2 files changed, 15 insertions, 2 deletions
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs
index addfe5d..e8f8e01 100644
--- a/OpenSim/Framework/Util.cs
+++ b/OpenSim/Framework/Util.cs
@@ -451,6 +451,14 @@ namespace OpenSim.Framework
451 return (x + y - (min >> 1) - (min >> 2) + (min >> 4)); 451 return (x + y - (min >> 1) - (min >> 2) + (min >> 4));
452 } 452 }
453 453
454 /// <summary>
455 /// Are the co-ordinates of the new region visible from the old region?
456 /// </summary>
457 /// <param name="oldx">Old region x-coord</param>
458 /// <param name="newx">New region x-coord</param>
459 /// <param name="oldy">Old region y-coord</param>
460 /// <param name="newy">New region y-coord</param>
461 /// <returns></returns>
454 public static bool IsOutsideView(uint oldx, uint newx, uint oldy, uint newy) 462 public static bool IsOutsideView(uint oldx, uint newx, uint oldy, uint newy)
455 { 463 {
456 // Eventually this will be a function of the draw distance / camera position too. 464 // Eventually this will be a function of the draw distance / camera position too.
diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
index b5cab84..f02a922 100644
--- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
@@ -1228,11 +1228,16 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
1228 } 1228 }
1229 1229
1230 m_log.Debug("[ENTITY TRANSFER MODULE]: Completed inform client about neighbour " + endPoint.ToString()); 1230 m_log.Debug("[ENTITY TRANSFER MODULE]: Completed inform client about neighbour " + endPoint.ToString());
1231
1232 } 1231 }
1233
1234 } 1232 }
1235 1233
1234 /// <summary>
1235 /// Return the list of regions that are considered to be neighbours to the given scene.
1236 /// </summary>
1237 /// <param name="pScene"></param>
1238 /// <param name="pRegionLocX"></param>
1239 /// <param name="pRegionLocY"></param>
1240 /// <returns></returns>
1236 protected List<GridRegion> RequestNeighbours(Scene pScene, uint pRegionLocX, uint pRegionLocY) 1241 protected List<GridRegion> RequestNeighbours(Scene pScene, uint pRegionLocX, uint pRegionLocY)
1237 { 1242 {
1238 RegionInfo m_regionInfo = pScene.RegionInfo; 1243 RegionInfo m_regionInfo = pScene.RegionInfo;