fix a typo in dbs region range

melanie
UbitUmarov 2016-12-01 04:08:42 +00:00
parent 874d663161
commit 29f6e3fc7b
2 changed files with 2 additions and 2 deletions

View File

@ -204,7 +204,7 @@ namespace OpenSim.Data.MySQL
foreach (RegionData r in dbret) foreach (RegionData r in dbret)
{ {
if (r.posX + r.sizeX > startX && r.posX <= endX if (r.posX + r.sizeX > startX && r.posX <= endX
&& r.posY + r.sizeX > startY && r.posY <= endY) && r.posY + r.sizeY > startY && r.posY <= endY)
ret.Add(r); ret.Add(r);
} }
return ret; return ret;

View File

@ -211,7 +211,7 @@ namespace OpenSim.Data.PGSQL
foreach (RegionData r in dbret) foreach (RegionData r in dbret)
{ {
if (r.posX + r.sizeX > startX && r.posX <= endX if (r.posX + r.sizeX > startX && r.posX <= endX
&& r.posY + r.sizeX > startY && r.posY <= endY) && r.posY + r.sizeY > startY && r.posY <= endY)
ret.Add(r); ret.Add(r);
} }
return ret; return ret;