aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorBlueWall2012-01-24 17:11:35 -0500
committerBlueWall2012-01-24 17:11:35 -0500
commitdc329202ef577d8c544eecd156ba496d7e680f0a (patch)
tree20efd678683fa50663d93b99fb0df3d8c39e477b
parentTeleport routing, part 1 (diff)
downloadopensim-SC_OLD-dc329202ef577d8c544eecd156ba496d7e680f0a.zip
opensim-SC_OLD-dc329202ef577d8c544eecd156ba496d7e680f0a.tar.gz
opensim-SC_OLD-dc329202ef577d8c544eecd156ba496d7e680f0a.tar.bz2
opensim-SC_OLD-dc329202ef577d8c544eecd156ba496d7e680f0a.tar.xz
Put Telehubs on the map
-rw-r--r--OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs b/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs
index 9b0e2ff..2f723ef 100644
--- a/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs
+++ b/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs
@@ -1250,6 +1250,24 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
1250 responsemap["7"] = responsearr; 1250 responsemap["7"] = responsearr;
1251 } 1251 }
1252 1252
1253 if (m_scene.RegionInfo.RegionSettings.TelehubObject != UUID.Zero)
1254 {
1255 SceneObjectPart sop = m_scene.GetSceneObjectPart(m_scene.RegionInfo.RegionSettings.TelehubObject);
1256
1257 OSDArray responsearr = new OSDArray();
1258 OSDMap responsemapdata = new OSDMap();
1259 responsemapdata["X"] = OSD.FromInteger((int)(xstart + sop.AbsolutePosition.X));
1260 responsemapdata["Y"] = OSD.FromInteger((int)(ystart + sop.AbsolutePosition.Y));
1261 // responsemapdata["Z"] = OSD.FromInteger((int)m_scene.GetGroundHeight(x,y));
1262 responsemapdata["ID"] = OSD.FromUUID(sop.UUID);
1263 responsemapdata["Name"] = OSD.FromString(sop.Name);
1264 responsemapdata["Extra"] = OSD.FromInteger(0); // color (unused)
1265 responsemapdata["Extra2"] = OSD.FromInteger(0); // 0 = telehub / 1 = infohub
1266 responsearr.Add(responsemapdata);
1267
1268 responsemap["1"] = responsearr;
1269 }
1270
1253 return responsemap; 1271 return responsemap;
1254 } 1272 }
1255 1273