aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/math/Vector2.cpp
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-06-25 15:48:00 +0200
committerEinar Johan Trøan Sømåen2012-06-25 15:48:00 +0200
commit4c61cf042b09a64593a8beb6e1e9d72a883a7cda (patch)
tree53b3efa0ee268bca5335355b49c446e072f2c621 /engines/wintermute/math/Vector2.cpp
parent0fc175857ad83127541ce3a85cd701f85f7e844d (diff)
downloadscummvm-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.cpp8
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