Moved the m_sceneGridService.RegisterRegion(RegionInfo); call out of LoadWorldMap and into its own public method (which is called during region creation). We shouldn't have things like that in methods like LoadWorldMap as some regions might not being having a worldmap loaded via the LoadWorldMap method (like in custom applications).

Deleted the CreateTerrainTextureInitial Method which was a 99% duplicate of CreateTerrainTexture, with just a bool field setting difference. That bool is now passed to CreateTerrainTexture as a param.
This commit is contained in:
MW
2007-11-28 12:36:09 +00:00
parent c021bfe191
commit ac77c50ba9
6 changed files with 31 additions and 37 deletions

View File

@@ -467,13 +467,13 @@ namespace OpenSim.Region.ClientStack
/// <summary>
///
/// </summary>
public void SendTeleportCancel()
public void SendTeleportFailed()
{
TeleportCancelPacket tpCancel = new TeleportCancelPacket();
tpCancel.Info.SessionID = m_sessionId;
tpCancel.Info.AgentID = AgentId;
TeleportFailedPacket tpFailed = new TeleportFailedPacket();
tpFailed.Info.AgentID = this.AgentId;
tpFailed.Info.Reason = Helpers.StringToField("unknown failure of teleport");
OutPacket(tpCancel, ThrottleOutPacketType.Task);
OutPacket(tpFailed, ThrottleOutPacketType.Task);
}
/// <summary>