From f9b7cc53deb93fc3528929385d3f76519083c927 Mon Sep 17 00:00:00 2001 From: gareth Date: Sun, 15 Apr 2007 02:31:34 +0000 Subject: W00t! multiple sims! Misc bugfixes Child agents!!!!!! General sexy stuff --- OpenGridServices.GridServer/SimProfiles.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'OpenGridServices.GridServer') 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 if (GetProfileByHandle(Helpers.UIntsToLong((uint)((TheSim.RegionLocX + x) * 256), (uint)(TheSim.RegionLocY + y) * 256)) != null) { neighbour = GetProfileByHandle(Helpers.UIntsToLong((uint)((TheSim.RegionLocX + x) * 256), (uint)(TheSim.RegionLocY + y) * 256)); + NeighbourBlock = new Hashtable(); NeighbourBlock["sim_ip"] = neighbour.sim_ip; NeighbourBlock["sim_port"] = neighbour.sim_port.ToString(); NeighbourBlock["region_locx"] = neighbour.RegionLocX.ToString(); NeighbourBlock["region_locy"] = neighbour.RegionLocY.ToString(); NeighbourBlock["UUID"] = neighbour.UUID.ToString(); - SimNeighboursData.Add(NeighbourBlock); + + if(neighbour.UUID!=TheSim.UUID) SimNeighboursData.Add(NeighbourBlock); } } -- cgit v1.1