aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenGridServices.GridServer/SimProfiles.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenGridServices.GridServer/SimProfiles.cs')
-rw-r--r--OpenGridServices.GridServer/SimProfiles.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenGridServices.GridServer/SimProfiles.cs b/OpenGridServices.GridServer/SimProfiles.cs
index 7fcfb8c..bd91d5b 100644
--- a/OpenGridServices.GridServer/SimProfiles.cs
+++ b/OpenGridServices.GridServer/SimProfiles.cs
@@ -158,13 +158,15 @@ namespace OpenGridServices.GridServer
158 if (GetProfileByHandle(Helpers.UIntsToLong((uint)((TheSim.RegionLocX + x) * 256), (uint)(TheSim.RegionLocY + y) * 256)) != null) 158 if (GetProfileByHandle(Helpers.UIntsToLong((uint)((TheSim.RegionLocX + x) * 256), (uint)(TheSim.RegionLocY + y) * 256)) != null)
159 { 159 {
160 neighbour = GetProfileByHandle(Helpers.UIntsToLong((uint)((TheSim.RegionLocX + x) * 256), (uint)(TheSim.RegionLocY + y) * 256)); 160 neighbour = GetProfileByHandle(Helpers.UIntsToLong((uint)((TheSim.RegionLocX + x) * 256), (uint)(TheSim.RegionLocY + y) * 256));
161
161 NeighbourBlock = new Hashtable(); 162 NeighbourBlock = new Hashtable();
162 NeighbourBlock["sim_ip"] = neighbour.sim_ip; 163 NeighbourBlock["sim_ip"] = neighbour.sim_ip;
163 NeighbourBlock["sim_port"] = neighbour.sim_port.ToString(); 164 NeighbourBlock["sim_port"] = neighbour.sim_port.ToString();
164 NeighbourBlock["region_locx"] = neighbour.RegionLocX.ToString(); 165 NeighbourBlock["region_locx"] = neighbour.RegionLocX.ToString();
165 NeighbourBlock["region_locy"] = neighbour.RegionLocY.ToString(); 166 NeighbourBlock["region_locy"] = neighbour.RegionLocY.ToString();
166 NeighbourBlock["UUID"] = neighbour.UUID.ToString(); 167 NeighbourBlock["UUID"] = neighbour.UUID.ToString();
167 SimNeighboursData.Add(NeighbourBlock); 168
169 if(neighbour.UUID!=TheSim.UUID) SimNeighboursData.Add(NeighbourBlock);
168 } 170 }
169 } 171 }
170 172