minor: Remove some mono compiler warnings in OpenSim.Framework.dll

This commit is contained in:
Justin Clark-Casey (justincc)
2013-03-13 23:17:27 +00:00
parent 5c53660a7f
commit 39a0928052
2 changed files with 3 additions and 3 deletions

View File

@@ -303,12 +303,12 @@ namespace OpenSim.Framework
// Clamp the maximum magnitude of a vector
public static Vector3 ClampV(Vector3 x, float max)
{
Vector3 ret = x;
float lenSq = x.LengthSquared();
if (lenSq > (max * max))
{
x = x / x.Length() * max;
}
return x;
}