mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 03:45:35 +08:00
properly explaining each #pragma warning disable
massaging OSHttpRequestPump to not abort on exceptions...
This commit is contained in:
@@ -100,6 +100,7 @@ namespace OpenSim.Region.Physics.Manager
|
||||
public delegate void CollisionUpdate(EventArgs e);
|
||||
public delegate void OutOfBounds(PhysicsVector pos);
|
||||
|
||||
// disable warning: public events
|
||||
#pragma warning disable 67
|
||||
public event PositionUpdate OnPositionUpdate;
|
||||
public event VelocityUpdate OnVelocityUpdate;
|
||||
|
||||
@@ -193,9 +193,10 @@ public class Vertex : PhysicsVector, IComparable<Vertex>
|
||||
return new Vertex(Y * v.Z - Z * v.Y, Z * v.X - X * v.Z, X * v.Y - Y * v.X);
|
||||
}
|
||||
|
||||
// mono compiler moans about overloading operators hiding base
|
||||
// operator but should not according to C# language spec
|
||||
#pragma warning disable 0108
|
||||
// disable warning: mono compiler moans about overloading
|
||||
// operators hiding base operator but should not according to C#
|
||||
// language spec
|
||||
#pragma warning disable 0108
|
||||
public static Vertex operator *(Vertex v, Quaternion q)
|
||||
{
|
||||
Matrix4 tm = q.computeMatrix();
|
||||
@@ -253,7 +254,7 @@ public class Vertex : PhysicsVector, IComparable<Vertex>
|
||||
v1.Z *= mul;
|
||||
return v1;
|
||||
}
|
||||
#pragma warning restore 0108
|
||||
#pragma warning restore 0108
|
||||
|
||||
|
||||
public float dot(Vertex v)
|
||||
|
||||
Reference in New Issue
Block a user