aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorUbitUmarov2016-12-01 04:08:42 +0000
committerUbitUmarov2016-12-01 04:08:42 +0000
commit29f6e3fc7bc3b86400b12958c0661a0c06612b7b (patch)
treeeee7e2edafcb9bbd7329d531eac880de13671aa8
parent fix region area range (diff)
downloadopensim-SC_OLD-29f6e3fc7bc3b86400b12958c0661a0c06612b7b.zip
opensim-SC_OLD-29f6e3fc7bc3b86400b12958c0661a0c06612b7b.tar.gz
opensim-SC_OLD-29f6e3fc7bc3b86400b12958c0661a0c06612b7b.tar.bz2
opensim-SC_OLD-29f6e3fc7bc3b86400b12958c0661a0c06612b7b.tar.xz
fix a typo in dbs region range
-rw-r--r--OpenSim/Data/MySQL/MySQLRegionData.cs2
-rw-r--r--OpenSim/Data/PGSQL/PGSQLRegionData.cs2
2 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Data/MySQL/MySQLRegionData.cs b/OpenSim/Data/MySQL/MySQLRegionData.cs
index 3dc049b..99d4944 100644
--- a/OpenSim/Data/MySQL/MySQLRegionData.cs
+++ b/OpenSim/Data/MySQL/MySQLRegionData.cs
@@ -204,7 +204,7 @@ namespace OpenSim.Data.MySQL
204 foreach (RegionData r in dbret) 204 foreach (RegionData r in dbret)
205 { 205 {
206 if (r.posX + r.sizeX > startX && r.posX <= endX 206 if (r.posX + r.sizeX > startX && r.posX <= endX
207 && r.posY + r.sizeX > startY && r.posY <= endY) 207 && r.posY + r.sizeY > startY && r.posY <= endY)
208 ret.Add(r); 208 ret.Add(r);
209 } 209 }
210 return ret; 210 return ret;
diff --git a/OpenSim/Data/PGSQL/PGSQLRegionData.cs b/OpenSim/Data/PGSQL/PGSQLRegionData.cs
index 3924b7b..fc352c3 100644
--- a/OpenSim/Data/PGSQL/PGSQLRegionData.cs
+++ b/OpenSim/Data/PGSQL/PGSQLRegionData.cs
@@ -211,7 +211,7 @@ namespace OpenSim.Data.PGSQL
211 foreach (RegionData r in dbret) 211 foreach (RegionData r in dbret)
212 { 212 {
213 if (r.posX + r.sizeX > startX && r.posX <= endX 213 if (r.posX + r.sizeX > startX && r.posX <= endX
214 && r.posY + r.sizeX > startY && r.posY <= endY) 214 && r.posY + r.sizeY > startY && r.posY <= endY)
215 ret.Add(r); 215 ret.Add(r);
216 } 216 }
217 return ret; 217 return ret;