Refactor to get closer to core

avinationmerge
Melanie 2013-05-11 16:15:39 +02:00
parent cbae04ba97
commit 8ade6fa617
2 changed files with 3 additions and 3 deletions

View File

@ -1114,14 +1114,14 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
((Scene)(client.Scene)).RequestTeleportLocation( ((Scene)(client.Scene)).RequestTeleportLocation(
client, regionInfo.RegionHandle, uinfo.HomePosition, uinfo.HomeLookAt, client, regionInfo.RegionHandle, uinfo.HomePosition, uinfo.HomeLookAt,
(uint)(Constants.TeleportFlags.SetLastToTarget | Constants.TeleportFlags.ViaHome)); (uint)(Constants.TeleportFlags.SetLastToTarget | Constants.TeleportFlags.ViaHome));
return true;
} }
else else
{ {
// can't find the Home region: Tell viewer and abort // can't find the Home region: Tell viewer and abort
client.SendTeleportFailed("Your home region could not be found."); client.SendTeleportFailed("Your home region could not be found.");
return false;
} }
return true; return false;
} }
#endregion #endregion

View File

@ -3380,7 +3380,7 @@ namespace OpenSim.Region.Framework.Scenes
{ {
if (EntityTransferModule != null) if (EntityTransferModule != null)
{ {
EntityTransferModule.TeleportHome(agentId, client); return EntityTransferModule.TeleportHome(agentId, client);
} }
else else
{ {