diff options
Diffstat (limited to 'engines/wintermute/math/Vector2.cpp')
-rw-r--r-- | engines/wintermute/math/Vector2.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/wintermute/math/Vector2.cpp b/engines/wintermute/math/Vector2.cpp index b2fa56dff4..a72fb51e79 100644 --- a/engines/wintermute/math/Vector2.cpp +++ b/engines/wintermute/math/Vector2.cpp @@ -37,9 +37,9 @@ Vector2::Vector2() { }
//////////////////////////////////////////////////////////////////////////
-Vector2::Vector2(float x, float y) {
- this->x = x;
- this->y = y;
+Vector2::Vector2(float xVal, float yVal) {
+ this->x = xVal;
+ this->y = yVal;
}
//////////////////////////////////////////////////////////////////////////
@@ -49,7 +49,7 @@ Vector2::~Vector2() { //////////////////////////////////////////////////////////////////////////
float Vector2::Length() const {
- return sqrt(x * x + y * y);
+ return (float)sqrt(x * x + y * y);
}
} // end of namespace WinterMute
|