diff options
author | Fire-Head <Fire-Head@users.noreply.github.com> | 2020-04-15 07:03:53 +0200 |
---|---|---|
committer | Fire-Head <Fire-Head@users.noreply.github.com> | 2020-04-15 07:03:53 +0200 |
commit | daed13485ef47d9c8992e53e1a976fba237fca50 (patch) | |
tree | f8116c26ac5f95a77375d67daffddbeaa19177e0 /src/math/Vector2D.h | |
parent | fix weather init (diff) | |
download | re3-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 'src/math/Vector2D.h')
-rw-r--r-- | src/math/Vector2D.h | 7 |
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; |