mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
bug fix
This commit is contained in:
@@ -373,12 +373,16 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid
|
||||
if(r == null) // ??
|
||||
continue;
|
||||
|
||||
if(handle < r.RegionHandle)
|
||||
int test = r.RegionLocX;
|
||||
if(x < test)
|
||||
continue;
|
||||
int test = r.RegionLocX + r.RegionSizeX;
|
||||
test += r.RegionSizeX;
|
||||
if(x >= test)
|
||||
continue;
|
||||
test = r.RegionLocY + r.RegionSizeY;
|
||||
test = r.RegionLocY;
|
||||
if (y < test)
|
||||
continue;
|
||||
test += r.RegionSizeY;
|
||||
if (y < test)
|
||||
return r;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user