diff options
author | Diva Canto | 2011-05-10 09:02:25 -0700 |
---|---|---|
committer | Diva Canto | 2011-05-10 09:04:00 -0700 |
commit | d0673d7620551f19eb7866ea054fb937eb3a3a67 (patch) | |
tree | ddc57d2de4d9aa170c050c149f518e92d0e98438 /OpenSim | |
parent | Changed the Access flag on HGMap to 255 (does not exist) and clarified the ot... (diff) | |
download | opensim-SC_OLD-d0673d7620551f19eb7866ea054fb937eb3a3a67.zip opensim-SC_OLD-d0673d7620551f19eb7866ea054fb937eb3a3a67.tar.gz opensim-SC_OLD-d0673d7620551f19eb7866ea054fb937eb3a3a67.tar.bz2 opensim-SC_OLD-d0673d7620551f19eb7866ea054fb937eb3a3a67.tar.xz |
Somewhat reverting the last commit. The viewer ignores 255's on tiles that were previously on, so we need to send 254 (offline) explicitly. Also removing the +/-4 for HGMap, because it makes the map flicker.
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/CoreModules/Hypergrid/HGWorldMapModule.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/CoreModules/Hypergrid/HGWorldMapModule.cs b/OpenSim/Region/CoreModules/Hypergrid/HGWorldMapModule.cs index d8681b5..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 | { |
@@ -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 = 255; // means 'simulator does not exist' | 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 | } |