mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 19:36:07 +08:00
HG LinkRegion receive region size also. Useless since olde r gatekeepers dont send it
This commit is contained in:
@@ -198,7 +198,7 @@ namespace OpenSim.Services.GridService
|
||||
|
||||
mapName = mapName.Trim();
|
||||
|
||||
if (!mapName.StartsWith("http"))
|
||||
if (!mapName.StartsWith("http") && !!mapName.StartsWith("https"))
|
||||
{
|
||||
// Formats: grid.example.com:8002:region name
|
||||
// grid.example.com:region name
|
||||
@@ -365,7 +365,9 @@ namespace OpenSim.Services.GridService
|
||||
UUID regionID = UUID.Zero;
|
||||
string externalName = string.Empty;
|
||||
string imageURL = string.Empty;
|
||||
if (!m_GatekeeperConnector.LinkRegion(regInfo, out regionID, out handle, out externalName, out imageURL, out reason))
|
||||
int sizeX = (int)Constants.RegionSize;
|
||||
int sizeY = (int)Constants.RegionSize;
|
||||
if (!m_GatekeeperConnector.LinkRegion(regInfo, out regionID, out handle, out externalName, out imageURL, out reason, out sizeX, out sizeY))
|
||||
return false;
|
||||
|
||||
if (regionID == UUID.Zero)
|
||||
@@ -397,6 +399,8 @@ namespace OpenSim.Services.GridService
|
||||
// }
|
||||
|
||||
regInfo.RegionID = regionID;
|
||||
regInfo.RegionSizeX = sizeX;
|
||||
regInfo.RegionSizeY = sizeY;
|
||||
|
||||
if (externalName == string.Empty)
|
||||
regInfo.RegionName = regInfo.ServerURI;
|
||||
|
||||
Reference in New Issue
Block a user