make login to default regions be flaged also as login via RegionID, so landpoints can work on those default regions

LSLKeyTest
UbitUmarov 2016-09-15 01:56:38 +01:00
parent c4f30a3c31
commit f2dfd0a01a
1 changed files with 8 additions and 0 deletions

View File

@ -588,6 +588,7 @@ namespace OpenSim.Services.LLLoginService
List<GridRegion> defaults = m_GridService.GetDefaultRegions(scopeID); List<GridRegion> defaults = m_GridService.GetDefaultRegions(scopeID);
if (defaults != null && defaults.Count > 0) if (defaults != null && defaults.Count > 0)
{ {
flags |= TeleportFlags.ViaRegionID;
region = defaults[0]; region = defaults[0];
where = "safe"; where = "safe";
} }
@ -597,7 +598,10 @@ namespace OpenSim.Services.LLLoginService
account.FirstName, account.LastName); account.FirstName, account.LastName);
region = FindAlternativeRegion(scopeID); region = FindAlternativeRegion(scopeID);
if (region != null) if (region != null)
{
flags |= TeleportFlags.ViaRegionID;
where = "safe"; where = "safe";
}
} }
} }
@ -618,6 +622,7 @@ namespace OpenSim.Services.LLLoginService
List<GridRegion> defaults = m_GridService.GetDefaultRegions(scopeID); List<GridRegion> defaults = m_GridService.GetDefaultRegions(scopeID);
if (defaults != null && defaults.Count > 0) if (defaults != null && defaults.Count > 0)
{ {
flags |= TeleportFlags.ViaRegionID;
region = defaults[0]; region = defaults[0];
where = "safe"; where = "safe";
} }
@ -626,7 +631,10 @@ namespace OpenSim.Services.LLLoginService
m_log.Info("[LLOGIN SERVICE]: Last Region Not Found Attempting to find random region"); m_log.Info("[LLOGIN SERVICE]: Last Region Not Found Attempting to find random region");
region = FindAlternativeRegion(scopeID); region = FindAlternativeRegion(scopeID);
if (region != null) if (region != null)
{
flags |= TeleportFlags.ViaRegionID;
where = "safe"; where = "safe";
}
} }
} }