diff options
author | UbitUmarov | 2016-07-31 19:35:10 +0100 |
---|---|---|
committer | UbitUmarov | 2016-07-31 19:35:10 +0100 |
commit | 722b7cfbb2e1919f5d88be4574b4ae9edade25ba (patch) | |
tree | c36bd31f1c3f65f95e76242cabde7a95a2d0e338 /OpenSim | |
parent | Change RegionInfoCache again... (diff) | |
download | opensim-SC_OLD-722b7cfbb2e1919f5d88be4574b4ae9edade25ba.zip opensim-SC_OLD-722b7cfbb2e1919f5d88be4574b4ae9edade25ba.tar.gz opensim-SC_OLD-722b7cfbb2e1919f5d88be4574b4ae9edade25ba.tar.bz2 opensim-SC_OLD-722b7cfbb2e1919f5d88be4574b4ae9edade25ba.tar.xz |
bug fix
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RegionInfoCache.cs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RegionInfoCache.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RegionInfoCache.cs index 03fc9ea..6db9515 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RegionInfoCache.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RegionInfoCache.cs | |||
@@ -373,12 +373,16 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid | |||
373 | if(r == null) // ?? | 373 | if(r == null) // ?? |
374 | continue; | 374 | continue; |
375 | 375 | ||
376 | if(handle < r.RegionHandle) | 376 | int test = r.RegionLocX; |
377 | if(x < test) | ||
377 | continue; | 378 | continue; |
378 | int test = r.RegionLocX + r.RegionSizeX; | 379 | test += r.RegionSizeX; |
379 | if(x >= test) | 380 | if(x >= test) |
380 | continue; | 381 | continue; |
381 | test = r.RegionLocY + r.RegionSizeY; | 382 | test = r.RegionLocY; |
383 | if (y < test) | ||
384 | continue; | ||
385 | test += r.RegionSizeY; | ||
382 | if (y < test) | 386 | if (y < test) |
383 | return r; | 387 | return r; |
384 | } | 388 | } |