summaryrefslogtreecommitdiffstats
path: root/src/math/Vector2D.h
diff options
context:
space:
mode:
authorFire-Head <Fire-Head@users.noreply.github.com>2020-04-15 07:03:53 +0200
committerFire-Head <Fire-Head@users.noreply.github.com>2020-04-15 07:03:53 +0200
commitdaed13485ef47d9c8992e53e1a976fba237fca50 (patch)
treef8116c26ac5f95a77375d67daffddbeaa19177e0 /src/math/Vector2D.h
parentfix weather init (diff)
downloadre3-daed13485ef47d9c8992e53e1a976fba237fca50.tar
re3-daed13485ef47d9c8992e53e1a976fba237fca50.tar.gz
re3-daed13485ef47d9c8992e53e1a976fba237fca50.tar.bz2
re3-daed13485ef47d9c8992e53e1a976fba237fca50.tar.lz
re3-daed13485ef47d9c8992e53e1a976fba237fca50.tar.xz
re3-daed13485ef47d9c8992e53e1a976fba237fca50.tar.zst
re3-daed13485ef47d9c8992e53e1a976fba237fca50.zip
Diffstat (limited to '')
-rw-r--r--src/math/Vector2D.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/math/Vector2D.h b/src/math/Vector2D.h
index 1e4d698f..705ad763 100644
--- a/src/math/Vector2D.h
+++ b/src/math/Vector2D.h
@@ -13,13 +13,14 @@ public:
void Normalise(void){
float sq = MagnitudeSqr();
- if(sq > 0.0f){
+ //if(sq > 0.0f){
float invsqrt = RecipSqrt(sq);
x *= invsqrt;
y *= invsqrt;
- }else
- x = 1.0f;
+ //}else
+ // x = 1.0f;
}
+
const CVector2D &operator+=(CVector2D const &right) {
x += right.x;
y += right.y;