summaryrefslogtreecommitdiffstats
path: root/src/math
diff options
context:
space:
mode:
Diffstat (limited to 'src/math')
-rw-r--r--src/math/Vector.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/math/Vector.h b/src/math/Vector.h
index badc40e3..082b296f 100644
--- a/src/math/Vector.h
+++ b/src/math/Vector.h
@@ -120,7 +120,7 @@ Distance2D(const CVector &v1, const CVector &v2)
{
float x = v2.x - v1.x;
float y = v2.y - v1.y;
- return Sqrt(sq(x) + sq(y));
+ return Sqrt(x*x + y*y);
}
class CMatrix;