Merge pull request #183 from Acclution/master

Fix issue where Vector2::normalize() did not normalize correctly
pull/192/head
Bastiaan Olij 2018-09-09 17:59:39 +10:00 committed by GitHub
commit f52cc4c964
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ void Vector2::normalize()
{
real_t l = x*x + y*y;
if (l != 0) {
l = (l);
l = sqrt(l);
x /= l;
y /= l;
}