mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 01:35:46 +08:00
Refactor to get closer to core
This commit is contained in:
@@ -1114,14 +1114,14 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
|
||||
((Scene)(client.Scene)).RequestTeleportLocation(
|
||||
client, regionInfo.RegionHandle, uinfo.HomePosition, uinfo.HomeLookAt,
|
||||
(uint)(Constants.TeleportFlags.SetLastToTarget | Constants.TeleportFlags.ViaHome));
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
// can't find the Home region: Tell viewer and abort
|
||||
client.SendTeleportFailed("Your home region could not be found.");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -3380,7 +3380,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
{
|
||||
if (EntityTransferModule != null)
|
||||
{
|
||||
EntityTransferModule.TeleportHome(agentId, client);
|
||||
return EntityTransferModule.TeleportHome(agentId, client);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user