cosmetics

This commit is contained in:
UbitUmarov
2023-02-08 03:00:20 +00:00
parent 0ad8d8da7b
commit d0be98bacb
2 changed files with 4 additions and 5 deletions

View File

@@ -2068,7 +2068,7 @@ namespace OpenSim.Region.PhysicsModule.ubOde
}
}
h0 = rx * rx + ry * ry + 1.0f;
h0 = 1.0f / (float) Math.Sqrt(h0);
h0 = 1.0f / MathF.Sqrt(h0);
return new Vector3(rx * h0, ry * h0, h0);
}

View File

@@ -233,16 +233,15 @@ namespace OpenSim.Services.HypergridService
// First, let's double check that the reported friends are, indeed, friends of that user
// And let's check that the secret matches
List<string> usersToBeNotified = new List<string>();
string foreignUserIDToString = foreignUserID.ToString();
foreach (string uui in friends)
{
UUID localUserID;
string secret = string.Empty, tmp = string.Empty;
if (Util.ParseUniversalUserIdentifier(uui, out localUserID, out tmp, out tmp, out tmp, out secret))
if (Util.ParseUniversalUserIdentifier(uui, out UUID localUserID, out _, out _, out _, out string secret))
{
FriendInfo[] friendInfos = m_FriendsService.GetFriends(localUserID);
foreach (FriendInfo finfo in friendInfos)
{
if (finfo.Friend.StartsWith(foreignUserID.ToString()) && finfo.Friend.EndsWith(secret))
if (finfo.Friend.StartsWith(foreignUserIDToString) && finfo.Friend.EndsWith(secret))
{
// great!
usersToBeNotified.Add(localUserID.ToString());