diff options
Merge branch 'master' of melanie@opensimulator.org:/var/git/opensim
Diffstat (limited to 'OpenSim/Region/CoreModules')
3 files changed, 9 insertions, 6 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/InstantMessage/OfflineMessageModule.cs b/OpenSim/Region/CoreModules/Avatar/InstantMessage/OfflineMessageModule.cs index 919ea33..321b38b 100644 --- a/OpenSim/Region/CoreModules/Avatar/InstantMessage/OfflineMessageModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/InstantMessage/OfflineMessageModule.cs | |||
@@ -178,6 +178,9 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage | |||
178 | List<GridInstantMessage> msglist = SynchronousRestObjectPoster.BeginPostObject<UUID, List<GridInstantMessage>>( | 178 | List<GridInstantMessage> msglist = SynchronousRestObjectPoster.BeginPostObject<UUID, List<GridInstantMessage>>( |
179 | "POST", m_RestURL + "/RetrieveMessages/", client.AgentId); | 179 | "POST", m_RestURL + "/RetrieveMessages/", client.AgentId); |
180 | 180 | ||
181 | if (msglist == null) | ||
182 | m_log.WarnFormat("[OFFLINE MESSAGING]: WARNING null message list."); | ||
183 | |||
181 | foreach (GridInstantMessage im in msglist) | 184 | foreach (GridInstantMessage im in msglist) |
182 | { | 185 | { |
183 | // client.SendInstantMessage(im); | 186 | // client.SendInstantMessage(im); |
diff --git a/OpenSim/Region/CoreModules/Hypergrid/HGWorldMapModule.cs b/OpenSim/Region/CoreModules/Hypergrid/HGWorldMapModule.cs index a0ccdc7..5ab334f 100644 --- a/OpenSim/Region/CoreModules/Hypergrid/HGWorldMapModule.cs +++ b/OpenSim/Region/CoreModules/Hypergrid/HGWorldMapModule.cs | |||
@@ -62,8 +62,8 @@ namespace OpenSim.Region.CoreModules.Hypergrid | |||
62 | { | 62 | { |
63 | List<MapBlockData> mapBlocks = new List<MapBlockData>(); | 63 | List<MapBlockData> mapBlocks = new List<MapBlockData>(); |
64 | List<GridRegion> regions = m_scene.GridService.GetRegionRange(m_scene.RegionInfo.ScopeID, | 64 | List<GridRegion> regions = m_scene.GridService.GetRegionRange(m_scene.RegionInfo.ScopeID, |
65 | (minX - 4) * (int)Constants.RegionSize, (maxX + 4) * (int)Constants.RegionSize, | 65 | minX * (int)Constants.RegionSize, maxX * (int)Constants.RegionSize, |
66 | (minY - 4) * (int)Constants.RegionSize, (maxY + 4) * (int)Constants.RegionSize); | 66 | minY * (int)Constants.RegionSize, maxY * (int)Constants.RegionSize); |
67 | 67 | ||
68 | foreach (GridRegion r in regions) | 68 | foreach (GridRegion r in regions) |
69 | { | 69 | { |
@@ -76,7 +76,7 @@ namespace OpenSim.Region.CoreModules.Hypergrid | |||
76 | FillInMap(mapBlocks, minX, minY, maxX, maxY); | 76 | FillInMap(mapBlocks, minX, minY, maxX, maxY); |
77 | // | 77 | // |
78 | 78 | ||
79 | remoteClient.SendMapBlock(mapBlocks, flag); | 79 | remoteClient.SendMapBlock(mapBlocks, 0); |
80 | } | 80 | } |
81 | 81 | ||
82 | 82 | ||
@@ -93,7 +93,7 @@ namespace OpenSim.Region.CoreModules.Hypergrid | |||
93 | mblock.X = (ushort)x; | 93 | mblock.X = (ushort)x; |
94 | mblock.Y = (ushort)y; | 94 | mblock.Y = (ushort)y; |
95 | mblock.Name = ""; | 95 | mblock.Name = ""; |
96 | mblock.Access = 254; // not here??? | 96 | mblock.Access = 254; // means 'simulator is offline'. We need this because the viewer ignores 255's |
97 | mblock.MapImageId = UUID.Zero; | 97 | mblock.MapImageId = UUID.Zero; |
98 | mapBlocks.Add(mblock); | 98 | mapBlocks.Add(mblock); |
99 | } | 99 | } |
diff --git a/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs b/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs index 8073f2d..0cacf2d 100644 --- a/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs +++ b/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs | |||
@@ -820,7 +820,7 @@ namespace OpenSim.Region.CoreModules.World.WorldMap | |||
820 | MapBlockData block = new MapBlockData(); | 820 | MapBlockData block = new MapBlockData(); |
821 | block.X = (ushort)minX; | 821 | block.X = (ushort)minX; |
822 | block.Y = (ushort)minY; | 822 | block.Y = (ushort)minY; |
823 | block.Access = 254; // == not there | 823 | block.Access = 254; // means 'simulator is offline' |
824 | response.Add(block); | 824 | response.Add(block); |
825 | } | 825 | } |
826 | remoteClient.SendMapBlock(response, 0); | 826 | remoteClient.SendMapBlock(response, 0); |
@@ -846,7 +846,7 @@ namespace OpenSim.Region.CoreModules.World.WorldMap | |||
846 | MapBlockFromGridRegion(block, r); | 846 | MapBlockFromGridRegion(block, r); |
847 | mapBlocks.Add(block); | 847 | mapBlocks.Add(block); |
848 | } | 848 | } |
849 | remoteClient.SendMapBlock(mapBlocks, flag); | 849 | remoteClient.SendMapBlock(mapBlocks, 0); |
850 | } | 850 | } |
851 | 851 | ||
852 | protected void MapBlockFromGridRegion(MapBlockData block, GridRegion r) | 852 | protected void MapBlockFromGridRegion(MapBlockData block, GridRegion r) |