update libomv with vector2 and 3 IsZero()

This commit is contained in:
UbitUmarov
2022-01-09 23:52:42 +00:00
parent 94adb4f86e
commit dd846ffc6c
11 changed files with 14 additions and 17 deletions

View File

@@ -8434,7 +8434,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
return;
MoneyTransferRequestPacket money = (MoneyTransferRequestPacket)Pack;
// validate the agent owns the agentID and sessionID
if (money.MoneyData.SourceID == m_agentId && money.AgentData.AgentID.Equals(m_agentId) &&
if (money.MoneyData.SourceID.Equals(m_agentId) && money.AgentData.AgentID.Equals(m_agentId) &&
money.AgentData.SessionID.Equals(m_sessionId))
{
OnMoneyTransferRequest?.Invoke(money.MoneyData.SourceID, money.MoneyData.DestID,
@@ -11326,7 +11326,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
private void HandleGodKickUser(Packet Pack)
{
GodKickUserPacket gkupack = (GodKickUserPacket)Pack;
if (gkupack.UserInfo.GodSessionID.NotEqual(m_sessionId) || gkupack.UserInfo.GodID != m_agentId)
if (gkupack.UserInfo.GodSessionID.NotEqual(m_sessionId) || gkupack.UserInfo.GodID.NotEqual(m_agentId))
return;
OnGodKickUser?.Invoke(gkupack.UserInfo.GodID, gkupack.UserInfo.AgentID, gkupack.UserInfo.KickFlags, gkupack.UserInfo.Reason);

View File

@@ -273,7 +273,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
public void AddVector3(Vector3 v)
{
if (v == Vector3.Zero)
if (v.IsZero())
AddZeros(12);
else
{