aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Util.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-03-13 23:17:27 +0000
committerJustin Clark-Casey (justincc)2013-03-13 23:17:27 +0000
commit39a0928052bcaf4b81af326e129cbfd6329f9292 (patch)
treee8230ef3daa7a9404189263c968efb18804fc866 /OpenSim/Framework/Util.cs
parentAdd prototype dynamic objects map for scene object parts (diff)
downloadopensim-SC_OLD-39a0928052bcaf4b81af326e129cbfd6329f9292.zip
opensim-SC_OLD-39a0928052bcaf4b81af326e129cbfd6329f9292.tar.gz
opensim-SC_OLD-39a0928052bcaf4b81af326e129cbfd6329f9292.tar.bz2
opensim-SC_OLD-39a0928052bcaf4b81af326e129cbfd6329f9292.tar.xz
minor: Remove some mono compiler warnings in OpenSim.Framework.dll
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Util.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs
index 0fa54b2..94a172c 100644
--- a/OpenSim/Framework/Util.cs
+++ b/OpenSim/Framework/Util.cs
@@ -303,12 +303,12 @@ namespace OpenSim.Framework
303 // Clamp the maximum magnitude of a vector 303 // Clamp the maximum magnitude of a vector
304 public static Vector3 ClampV(Vector3 x, float max) 304 public static Vector3 ClampV(Vector3 x, float max)
305 { 305 {
306 Vector3 ret = x;
307 float lenSq = x.LengthSquared(); 306 float lenSq = x.LengthSquared();
308 if (lenSq > (max * max)) 307 if (lenSq > (max * max))
309 { 308 {
310 x = x / x.Length() * max; 309 x = x / x.Length() * max;
311 } 310 }
311
312 return x; 312 return x;
313 } 313 }
314 314