diff options
author | Einar Johan Trøan Sømåen | 2012-06-25 15:48:00 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-06-25 15:48:00 +0200 |
commit | 4c61cf042b09a64593a8beb6e1e9d72a883a7cda (patch) | |
tree | 53b3efa0ee268bca5335355b49c446e072f2c621 /engines/wintermute/math/Vector2.cpp | |
parent | 0fc175857ad83127541ce3a85cd701f85f7e844d (diff) | |
download | scummvm-rg350-4c61cf042b09a64593a8beb6e1e9d72a883a7cda.tar.gz scummvm-rg350-4c61cf042b09a64593a8beb6e1e9d72a883a7cda.tar.bz2 scummvm-rg350-4c61cf042b09a64593a8beb6e1e9d72a883a7cda.zip |
WINTERMUTE: Fix a bunch of warnings
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
|