aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2016-09-04 18:28:19 +0200
committerEugene Sandulenko2016-09-04 18:28:19 +0200
commit781e38524fbd2b6fbf3ee5285896f61eea23eeab (patch)
tree43882f54cea9671e347529c1f948d3bc7d454807
parentaaf7c2a910c8e3a2a5079e9b859a0a536c0caebb (diff)
downloadscummvm-rg350-781e38524fbd2b6fbf3ee5285896f61eea23eeab.tar.gz
scummvm-rg350-781e38524fbd2b6fbf3ee5285896f61eea23eeab.tar.bz2
scummvm-rg350-781e38524fbd2b6fbf3ee5285896f61eea23eeab.zip
FULLPIPE: Fix floaters direction
-rw-r--r--engines/fullpipe/floaters.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/fullpipe/floaters.cpp b/engines/fullpipe/floaters.cpp
index eb29706f72..aaeefb2c74 100644
--- a/engines/fullpipe/floaters.cpp
+++ b/engines/fullpipe/floaters.cpp
@@ -136,7 +136,7 @@ void Floaters::update() {
int dy = _array2[i]->val3 - _array2[i]->val5;
int dx = _array2[i]->val2 - _array2[i]->val4;
double dst = sqrt((double)(dy * dy + dx * dx));
- double at = atan2((double)dx, (double)dy);
+ double at = atan2((double)dy, (double)dx);
int newX = (int)(cos(at) * _array2[i]->val9);
int newY = (int)(sin(at) * _array2[i]->val9);