Merge branch 'ubitwork' of ssh://3dhosting.de/var/git/careminster into ubitwork
commit
a6bbaba7ef
|
@ -151,6 +151,10 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||||
ulong regionHandle, byte simAccess, IPEndPoint regionExternalEndPoint,
|
ulong regionHandle, byte simAccess, IPEndPoint regionExternalEndPoint,
|
||||||
uint locationID, uint flags, string capsURL, UUID agentID)
|
uint locationID, uint flags, string capsURL, UUID agentID)
|
||||||
{
|
{
|
||||||
|
ulong tpflags = 1L << 4; // AgentManager.TeleportFlags.ViaLocation
|
||||||
|
if((flags & (uint)TeleportFlags.IsFlying) != 0)
|
||||||
|
tpflags |= 1 << 13; // IsFLying;
|
||||||
|
|
||||||
OSDMap info = new OSDMap();
|
OSDMap info = new OSDMap();
|
||||||
info.Add("AgentID", OSD.FromUUID(agentID));
|
info.Add("AgentID", OSD.FromUUID(agentID));
|
||||||
info.Add("LocationID", OSD.FromInteger(4)); // TODO what is this?
|
info.Add("LocationID", OSD.FromInteger(4)); // TODO what is this?
|
||||||
|
@ -159,7 +163,8 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||||
info.Add("SimAccess", OSD.FromInteger(simAccess));
|
info.Add("SimAccess", OSD.FromInteger(simAccess));
|
||||||
info.Add("SimIP", OSD.FromBinary(regionExternalEndPoint.Address.GetAddressBytes()));
|
info.Add("SimIP", OSD.FromBinary(regionExternalEndPoint.Address.GetAddressBytes()));
|
||||||
info.Add("SimPort", OSD.FromInteger(regionExternalEndPoint.Port));
|
info.Add("SimPort", OSD.FromInteger(regionExternalEndPoint.Port));
|
||||||
info.Add("TeleportFlags", OSD.FromULong(1L << 4)); // AgentManager.TeleportFlags.ViaLocation
|
// info.Add("TeleportFlags", OSD.FromULong(1L << 4)); // AgentManager.TeleportFlags.ViaLocation
|
||||||
|
info.Add("TeleportFlags", OSD.FromULong(tpflags));
|
||||||
|
|
||||||
OSDArray infoArr = new OSDArray();
|
OSDArray infoArr = new OSDArray();
|
||||||
infoArr.Add(info);
|
infoArr.Add(info);
|
||||||
|
|
|
@ -808,7 +808,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
handshake.RegionInfo3.ProductName = Util.StringToBytes256(regionInfo.RegionType);
|
handshake.RegionInfo3.ProductName = Util.StringToBytes256(regionInfo.RegionType);
|
||||||
handshake.RegionInfo3.ProductSKU = Utils.EmptyBytes;
|
handshake.RegionInfo3.ProductSKU = Utils.EmptyBytes;
|
||||||
|
|
||||||
OutPacket(handshake, ThrottleOutPacketType.Task);
|
// OutPacket(handshake, ThrottleOutPacketType.Task);
|
||||||
|
// use same as MoveAgentIntoRegion (both should be task )
|
||||||
|
OutPacket(handshake, ThrottleOutPacketType.Unknown);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void MoveAgentIntoRegion(RegionInfo regInfo, Vector3 pos, Vector3 look)
|
public void MoveAgentIntoRegion(RegionInfo regInfo, Vector3 pos, Vector3 look)
|
||||||
|
|
|
@ -1264,7 +1264,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
|
|
||||||
Vector3 look = Velocity;
|
Vector3 look = Velocity;
|
||||||
|
|
||||||
if ((look.X == 0) && (look.Y == 0) && (look.Z == 0))
|
// if ((look.X == 0) && (look.Y == 0) && (look.Z == 0))
|
||||||
|
if ((Math.Abs(look.X) < 0.1) && (Math.Abs(look.Y) < 0.1) && (Math.Abs(look.Z) < 0.1))
|
||||||
{
|
{
|
||||||
look = new Vector3(0.99f, 0.042f, 0);
|
look = new Vector3(0.99f, 0.042f, 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue