mirror of
https://github.com/opensim/opensim.git
synced 2026-08-02 23:18:34 +08:00
Work on TeleportStart: renamed method from TeleportLocationStart to TeleportStart, and now sending this upon all teleports, not just some, and in the right place (EntityTransferModule).
This commit is contained in:
@@ -1432,16 +1432,27 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public void SendTeleportLocationStart()
|
||||
public void SendTeleportStart(uint flags)
|
||||
{
|
||||
//TeleportStartPacket tpStart = (TeleportStartPacket)PacketPool.Instance.GetPacket(PacketType.TeleportStart);
|
||||
TeleportStartPacket tpStart = new TeleportStartPacket();
|
||||
tpStart.Info.TeleportFlags = 16; // Teleport via location
|
||||
TeleportStartPacket tpStart = (TeleportStartPacket)PacketPool.Instance.GetPacket(PacketType.TeleportStart);
|
||||
//TeleportStartPacket tpStart = new TeleportStartPacket();
|
||||
tpStart.Info.TeleportFlags = flags; //16; // Teleport via location
|
||||
|
||||
// Hack to get this out immediately and skip throttles
|
||||
OutPacket(tpStart, ThrottleOutPacketType.Unknown);
|
||||
}
|
||||
|
||||
public void SendTeleportProgress(uint flags, string message)
|
||||
{
|
||||
TeleportProgressPacket tpProgress = (TeleportProgressPacket)PacketPool.Instance.GetPacket(PacketType.TeleportProgress);
|
||||
tpProgress.AgentData.AgentID = this.AgentId;
|
||||
tpProgress.Info.TeleportFlags = flags;
|
||||
tpProgress.Info.Message = Util.StringToBytes256(message);
|
||||
|
||||
// Hack to get this out immediately and skip throttles
|
||||
OutPacket(tpProgress, ThrottleOutPacketType.Unknown);
|
||||
}
|
||||
|
||||
public void SendMoneyBalance(UUID transaction, bool success, byte[] description, int balance)
|
||||
{
|
||||
MoneyBalanceReplyPacket money = (MoneyBalanceReplyPacket)PacketPool.Instance.GetPacket(PacketType.MoneyBalanceReply);
|
||||
|
||||
Reference in New Issue
Block a user