mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -151,20 +151,23 @@ namespace OpenSim.Region.Communications.OGS1
|
||||
|
||||
List<MapBlockData> neighbours = new List<MapBlockData>();
|
||||
|
||||
foreach (Hashtable n in (Hashtable)respData.Values)
|
||||
foreach (ArrayList a in respData.Values)
|
||||
{
|
||||
MapBlockData neighbour = new MapBlockData();
|
||||
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.MapImageId = (string)n["map-image-id"];
|
||||
neighbour.Name = (string)n["name"];
|
||||
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);
|
||||
neighbours.Add(neighbour);
|
||||
}
|
||||
}
|
||||
|
||||
return neighbours;
|
||||
|
||||
Reference in New Issue
Block a user