Bug fixed on map search for HG. Affected queries that had a region name at the end.
parent
1613d89383
commit
144f367863
|
@ -220,10 +220,16 @@ namespace OpenSim.Services.GridService
|
||||||
string[] parts = mapName.Split(new char[] {' '});
|
string[] parts = mapName.Split(new char[] {' '});
|
||||||
string regionName = String.Empty;
|
string regionName = String.Empty;
|
||||||
if (parts.Length > 1)
|
if (parts.Length > 1)
|
||||||
regionName = parts[1];
|
{
|
||||||
|
regionName = mapName.Substring(parts[0].Length + 1);
|
||||||
|
regionName = regionName.Trim(new char[] {'"'});
|
||||||
|
}
|
||||||
if (TryCreateLink(scopeID, xloc, yloc, regionName, 0, null, parts[0], ownerID, out regInfo, out reason))
|
if (TryCreateLink(scopeID, xloc, yloc, regionName, 0, null, parts[0], ownerID, out regInfo, out reason))
|
||||||
|
{
|
||||||
|
regInfo.RegionName = mapName;
|
||||||
return regInfo;
|
return regInfo;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -311,13 +317,13 @@ namespace OpenSim.Services.GridService
|
||||||
{
|
{
|
||||||
RemoveHyperlinkRegion(regInfo.RegionID);
|
RemoveHyperlinkRegion(regInfo.RegionID);
|
||||||
reason = "Region is too far (" + x + ", " + y + ")";
|
reason = "Region is too far (" + x + ", " + y + ")";
|
||||||
m_log.Info("[HYPERGRID LINKER]: Unable to link, region is too far (" + x + ", " + y + ")");
|
m_log.Info("[HYPERGRID LINKER]: Unable to link, reqgion is too far (" + x + ", " + y + ")");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
regInfo.RegionID = regionID;
|
regInfo.RegionID = regionID;
|
||||||
|
|
||||||
if ( externalName == string.Empty )
|
if (externalName == string.Empty)
|
||||||
regInfo.RegionName = regInfo.ServerURI;
|
regInfo.RegionName = regInfo.ServerURI;
|
||||||
else
|
else
|
||||||
regInfo.RegionName = externalName;
|
regInfo.RegionName = externalName;
|
||||||
|
|
Loading…
Reference in New Issue