diff options
author | UbitUmarov | 2015-09-26 14:14:05 +0100 |
---|---|---|
committer | UbitUmarov | 2015-09-26 14:14:05 +0100 |
commit | 239dcaffb79426dd08177e79d04e026fad651ada (patch) | |
tree | e855d8e03346551f205ae6ac0eddf8b60a9b45ab /OpenSim/Region/CoreModules | |
parent | fix unscripted sits without physics help (diff) | |
download | opensim-SC_OLD-239dcaffb79426dd08177e79d04e026fad651ada.zip opensim-SC_OLD-239dcaffb79426dd08177e79d04e026fad651ada.tar.gz opensim-SC_OLD-239dcaffb79426dd08177e79d04e026fad651ada.tar.bz2 opensim-SC_OLD-239dcaffb79426dd08177e79d04e026fad651ada.tar.xz |
coment out some debug, clean a bit
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r-- | OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/LocalGridServiceConnector.cs | 15 | ||||
-rw-r--r-- | OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RegionCache.cs | 12 |
2 files changed, 3 insertions, 24 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/LocalGridServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/LocalGridServiceConnector.cs index 6752e31..e585c25 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/LocalGridServiceConnector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/LocalGridServiceConnector.cs | |||
@@ -201,15 +201,6 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid | |||
201 | uint regionX = Util.WorldToRegionLoc((uint)x); | 201 | uint regionX = Util.WorldToRegionLoc((uint)x); |
202 | uint regionY = Util.WorldToRegionLoc((uint)y); | 202 | uint regionY = Util.WorldToRegionLoc((uint)y); |
203 | 203 | ||
204 | /* we are insane now | ||
205 | // Sanity check | ||
206 | if ((Util.RegionToWorldLoc(regionX) != (uint)x) || (Util.RegionToWorldLoc(regionY) != (uint)y)) | ||
207 | { | ||
208 | m_log.WarnFormat("{0} GetRegionByPosition. Bad position requested: not the base of the region. Requested Pos=<{1},{2}>, Should Be=<{3},{4}>", | ||
209 | LogHeader, x, y, Util.RegionToWorldLoc(regionX), Util.RegionToWorldLoc(regionY)); | ||
210 | } | ||
211 | */ | ||
212 | |||
213 | // First see if it's a neighbour, even if it isn't on this sim. | 204 | // First see if it's a neighbour, even if it isn't on this sim. |
214 | // Neighbour data is cached in memory, so this is fast | 205 | // Neighbour data is cached in memory, so this is fast |
215 | 206 | ||
@@ -220,9 +211,9 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid | |||
220 | region = rcache.GetRegionByPosition(x, y); | 211 | region = rcache.GetRegionByPosition(x, y); |
221 | if (region != null) | 212 | if (region != null) |
222 | { | 213 | { |
223 | m_log.DebugFormat("{0} GetRegionByPosition. Found region {1} in cache (of region {2}). Pos=<{3},{4}>", | 214 | //m_log.DebugFormat("{0} GetRegionByPosition. Found region {1} in cache (of region {2}). Pos=<{3},{4}>", |
224 | LogHeader, region.RegionName, rcache.RegionName, | 215 | // LogHeader, region.RegionName, rcache.RegionName, |
225 | Util.WorldToRegionLoc((uint)region.RegionLocX), Util.WorldToRegionLoc((uint)region.RegionLocY)); | 216 | // Util.WorldToRegionLoc((uint)region.RegionLocX), Util.WorldToRegionLoc((uint)region.RegionLocY)); |
226 | break; | 217 | break; |
227 | } | 218 | } |
228 | } | 219 | } |
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RegionCache.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RegionCache.cs index 7ae4771..2961c10 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RegionCache.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RegionCache.cs | |||
@@ -81,21 +81,9 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid | |||
81 | { | 81 | { |
82 | return new List<GridRegion>(m_neighbours.Values); | 82 | return new List<GridRegion>(m_neighbours.Values); |
83 | } | 83 | } |
84 | |||
85 | 84 | ||
86 | public GridRegion GetRegionByPosition(int x, int y) | 85 | public GridRegion GetRegionByPosition(int x, int y) |
87 | { | 86 | { |
88 | /* | ||
89 | uint xsnap = (uint)(x / Constants.RegionSize) * Constants.RegionSize; | ||
90 | uint ysnap = (uint)(y / Constants.RegionSize) * Constants.RegionSize; | ||
91 | ulong handle = Util.RegionWorldLocToHandle(xsnap, ysnap); | ||
92 | |||
93 | if (m_neighbours.ContainsKey(handle)) | ||
94 | return m_neighbours[handle]; | ||
95 | |||
96 | return null; | ||
97 | */ | ||
98 | |||
99 | // do actual search by position | 87 | // do actual search by position |
100 | // not the best, but this will not hold that many regions | 88 | // not the best, but this will not hold that many regions |
101 | GridRegion foundRegion = null; | 89 | GridRegion foundRegion = null; |