Fixed the crashing when trying to look at the map in grid mode. Although the textures for the regions don't seem to show up, about to look into that.

Sugilite
MW 2007-07-10 18:58:42 +00:00
parent 7f03246653
commit ebdc64730a
2 changed files with 27 additions and 10 deletions

View File

@ -117,6 +117,20 @@ namespace OpenSim.Framework.Types
}
}
// Only used for remote regions , ie ones not in the current instance
private uint m_remotingPort;
public uint RemotingPort
{
get
{
return m_remotingPort;
}
set
{
m_remotingPort = value;
}
}
public string DataStore = "";
public bool isSandbox = false;

View File

@ -151,21 +151,24 @@ namespace OpenSim.Region.Communications.OGS1
List<MapBlockData> neighbours = new List<MapBlockData>();
foreach (Hashtable n in (Hashtable)respData.Values)
foreach (ArrayList a in respData.Values)
{
foreach (Hashtable n in a)
{
MapBlockData neighbour = new MapBlockData();
neighbour.X = (ushort)n["x"];
neighbour.Y = (ushort)n["y"];
neighbour.X = Convert.ToUInt16(n["x"]);
neighbour.Y = Convert.ToUInt16(n["y"]);
neighbour.Name = (string)n["name"];
neighbour.Access = (byte)n["access"];
neighbour.RegionFlags = (uint)n["region-flags"];
neighbour.WaterHeight = (byte)n["water-height"];
neighbour.Access = Convert.ToByte(n["access"]);
neighbour.RegionFlags = Convert.ToUInt32(n["region-flags"]);
neighbour.WaterHeight = Convert.ToByte(n["water-height"]);
neighbour.MapImageId = (string)n["map-image-id"];
neighbours.Add(neighbour);
}
}
return neighbours;
}