diff options
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 20 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneManager.cs | 4 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 6 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SimStatsReporter.cs | 2 |
4 files changed, 16 insertions, 16 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index be8aed1..3a5aa0f 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -1110,8 +1110,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
1110 | if (RegionInfo.RegionHandle != otherRegion.RegionHandle) | 1110 | if (RegionInfo.RegionHandle != otherRegion.RegionHandle) |
1111 | { | 1111 | { |
1112 | // If these are cast to INT because long + negative values + abs returns invalid data | 1112 | // If these are cast to INT because long + negative values + abs returns invalid data |
1113 | int resultX = Math.Abs((int)xcell - (int)RegionInfo.LegacyRegionLocX); | 1113 | int resultX = Math.Abs((int)xcell - (int)RegionInfo.RegionLocX); |
1114 | int resultY = Math.Abs((int)ycell - (int)RegionInfo.LegacyRegionLocY); | 1114 | int resultY = Math.Abs((int)ycell - (int)RegionInfo.RegionLocY); |
1115 | if (resultX <= 1 && resultY <= 1) | 1115 | if (resultX <= 1 && resultY <= 1) |
1116 | { | 1116 | { |
1117 | // Let the grid service module know, so this can be cached | 1117 | // Let the grid service module know, so this can be cached |
@@ -1186,8 +1186,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
1186 | /// </returns> | 1186 | /// </returns> |
1187 | public int HaveNeighbor(Cardinals car, ref int[] fix) | 1187 | public int HaveNeighbor(Cardinals car, ref int[] fix) |
1188 | { | 1188 | { |
1189 | uint neighbourx = RegionInfo.LegacyRegionLocX; | 1189 | uint neighbourx = RegionInfo.RegionLocX; |
1190 | uint neighboury = RegionInfo.LegacyRegionLocY; | 1190 | uint neighboury = RegionInfo.RegionLocY; |
1191 | 1191 | ||
1192 | int dir = (int)car; | 1192 | int dir = (int)car; |
1193 | 1193 | ||
@@ -1209,8 +1209,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
1209 | 1209 | ||
1210 | if (neighbourRegion == null) | 1210 | if (neighbourRegion == null) |
1211 | { | 1211 | { |
1212 | fix[0] = (int)(RegionInfo.LegacyRegionLocX - neighbourx); | 1212 | fix[0] = (int)(RegionInfo.RegionLocX - neighbourx); |
1213 | fix[1] = (int)(RegionInfo.LegacyRegionLocY - neighboury); | 1213 | fix[1] = (int)(RegionInfo.RegionLocY - neighboury); |
1214 | return dir * (-1); | 1214 | return dir * (-1); |
1215 | } | 1215 | } |
1216 | else | 1216 | else |
@@ -4393,8 +4393,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
4393 | { | 4393 | { |
4394 | uint rRegionX = (uint)(cAgentData.RegionHandle >> 40); | 4394 | uint rRegionX = (uint)(cAgentData.RegionHandle >> 40); |
4395 | uint rRegionY = (((uint)(cAgentData.RegionHandle)) >> 8); | 4395 | uint rRegionY = (((uint)(cAgentData.RegionHandle)) >> 8); |
4396 | uint tRegionX = RegionInfo.LegacyRegionLocX; | 4396 | uint tRegionX = RegionInfo.RegionLocX; |
4397 | uint tRegionY = RegionInfo.LegacyRegionLocY; | 4397 | uint tRegionY = RegionInfo.RegionLocY; |
4398 | //Send Data to ScenePresence | 4398 | //Send Data to ScenePresence |
4399 | childAgentUpdate.UpdateChildAgent(cAgentData, tRegionX, tRegionY, rRegionX, rRegionY); | 4399 | childAgentUpdate.UpdateChildAgent(cAgentData, tRegionX, tRegionY, rRegionX, rRegionY); |
4400 | // Not Implemented: | 4400 | // Not Implemented: |
@@ -4636,8 +4636,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
4636 | uint regionX, regionY; | 4636 | uint regionX, regionY; |
4637 | Util.RegionHandleToWorldLoc(regionHandle, out regionX, out regionY); | 4637 | Util.RegionHandleToWorldLoc(regionHandle, out regionX, out regionY); |
4638 | 4638 | ||
4639 | int shiftx = (int) regionX - (int)RegionInfo.RegionWorldLocX; | 4639 | int shiftx = (int) regionX - (int)RegionInfo.WorldLocX; |
4640 | int shifty = (int) regionY - (int)RegionInfo.RegionWorldLocY; | 4640 | int shifty = (int) regionY - (int)RegionInfo.WorldLocY; |
4641 | 4641 | ||
4642 | position.X += shiftx; | 4642 | position.X += shiftx; |
4643 | position.Y += shifty; | 4643 | position.Y += shifty; |
diff --git a/OpenSim/Region/Framework/Scenes/SceneManager.cs b/OpenSim/Region/Framework/Scenes/SceneManager.cs index 2677989..28f7896 100644 --- a/OpenSim/Region/Framework/Scenes/SceneManager.cs +++ b/OpenSim/Region/Framework/Scenes/SceneManager.cs | |||
@@ -445,8 +445,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
445 | { | 445 | { |
446 | foreach (Scene mscene in m_localScenes) | 446 | foreach (Scene mscene in m_localScenes) |
447 | { | 447 | { |
448 | if (mscene.RegionInfo.LegacyRegionLocX == locX && | 448 | if (mscene.RegionInfo.RegionLocX == locX && |
449 | mscene.RegionInfo.LegacyRegionLocY == locY) | 449 | mscene.RegionInfo.RegionLocY == locY) |
450 | { | 450 | { |
451 | scene = mscene; | 451 | scene = mscene; |
452 | return true; | 452 | return true; |
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 8eb6f7d..3f5db12 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -702,7 +702,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
702 | uint x, y; | 702 | uint x, y; |
703 | Util.RegionHandleToRegionLoc(handle, out x, out y); | 703 | Util.RegionHandleToRegionLoc(handle, out x, out y); |
704 | 704 | ||
705 | if (Util.IsOutsideView(DrawDistance, x, Scene.RegionInfo.LegacyRegionLocX, y, Scene.RegionInfo.LegacyRegionLocY)) | 705 | if (Util.IsOutsideView(DrawDistance, x, Scene.RegionInfo.RegionLocX, y, Scene.RegionInfo.RegionLocY)) |
706 | { | 706 | { |
707 | old.Add(handle); | 707 | old.Add(handle); |
708 | } | 708 | } |
@@ -2115,8 +2115,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
2115 | // } | 2115 | // } |
2116 | 2116 | ||
2117 | // Get terrain height for sub-region in a megaregion if necessary | 2117 | // Get terrain height for sub-region in a megaregion if necessary |
2118 | int X = (int)((m_scene.RegionInfo.RegionWorldLocX) + pos.X); | 2118 | int X = (int)((m_scene.RegionInfo.WorldLocX) + pos.X); |
2119 | int Y = (int)((m_scene.RegionInfo.RegionWorldLocY) + pos.Y); | 2119 | int Y = (int)((m_scene.RegionInfo.WorldLocY) + pos.Y); |
2120 | GridRegion target_region = m_scene.GridService.GetRegionByPosition(m_scene.RegionInfo.ScopeID, X, Y); | 2120 | GridRegion target_region = m_scene.GridService.GetRegionByPosition(m_scene.RegionInfo.ScopeID, X, Y); |
2121 | // If X and Y is NaN, target_region will be null | 2121 | // If X and Y is NaN, target_region will be null |
2122 | if (target_region == null) | 2122 | if (target_region == null) |
diff --git a/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs b/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs index 67998a0..95f9caf 100644 --- a/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs +++ b/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs | |||
@@ -437,7 +437,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
437 | 437 | ||
438 | SimStats simStats | 438 | SimStats simStats |
439 | = new SimStats( | 439 | = new SimStats( |
440 | ReportingRegion.LegacyRegionLocX, ReportingRegion.LegacyRegionLocY, regionFlags, (uint)m_objectCapacity, | 440 | ReportingRegion.RegionLocX, ReportingRegion.RegionLocY, regionFlags, (uint)m_objectCapacity, |
441 | rb, sb, m_scene.RegionInfo.originRegionID); | 441 | rb, sb, m_scene.RegionInfo.originRegionID); |
442 | 442 | ||
443 | handlerSendStatResult = OnSendStatsResult; | 443 | handlerSendStatResult = OnSendStatsResult; |