diff options
author | Eugene Sandulenko | 2016-09-04 18:28:19 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-09-04 18:28:19 +0200 |
commit | 781e38524fbd2b6fbf3ee5285896f61eea23eeab (patch) | |
tree | 43882f54cea9671e347529c1f948d3bc7d454807 /engines/fullpipe | |
parent | aaf7c2a910c8e3a2a5079e9b859a0a536c0caebb (diff) | |
download | scummvm-rg350-781e38524fbd2b6fbf3ee5285896f61eea23eeab.tar.gz scummvm-rg350-781e38524fbd2b6fbf3ee5285896f61eea23eeab.tar.bz2 scummvm-rg350-781e38524fbd2b6fbf3ee5285896f61eea23eeab.zip |
FULLPIPE: Fix floaters direction
Diffstat (limited to 'engines/fullpipe')
-rw-r--r-- | engines/fullpipe/floaters.cpp | 2 |
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); |