Fix osTeleportAgent for hypergrid destinations.

Signed-off-by: Melanie <melanie@t-data.com>
viewer-2-initial-appearance
Marck 2010-11-15 19:50:38 +01:00 committed by Melanie
parent 50202bab7c
commit 56bd42b438
1 changed files with 5 additions and 1 deletions

View File

@ -665,7 +665,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
if (regions != null && regions.Count > 0)
{
GridRegion regInfo = regions[0];
regionName = regInfo.RegionName;
string[] parts = regInfo.RegionName.Split(new char[] { ':' });
if (parts.Length > 2)
regionName = parts[2];
else
regionName = parts[0];
}
}
World.RequestTeleportLocation(presence.ControllingClient, regionName,