mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
a few more changes on vectors etc
This commit is contained in:
@@ -3729,7 +3729,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
reply.Data.Flags |= 0x04;
|
||||
|
||||
Vector3 pos = land.UserLocation;
|
||||
if (pos.Equals(Vector3.Zero))
|
||||
if (pos.IsZero())
|
||||
{
|
||||
pos = (land.AABBMax + land.AABBMin) * 0.5f;
|
||||
}
|
||||
|
||||
@@ -284,7 +284,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
|
||||
public void AddVector4(Vector4 v)
|
||||
{
|
||||
if (v == Vector4.Zero)
|
||||
if (v.IsZero())
|
||||
AddZeros(16);
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user