[Scummvm-git-logs] scummvm master -> 781e38524fbd2b6fbf3ee5285896f61eea23eeab
sev-
sev at scummvm.org
Sun Sep 4 18:28:43 CEST 2016
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
781e38524f FULLPIPE: Fix floaters direction
Commit: 781e38524fbd2b6fbf3ee5285896f61eea23eeab
https://github.com/scummvm/scummvm/commit/781e38524fbd2b6fbf3ee5285896f61eea23eeab
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2016-09-04T18:28:19+02:00
Commit Message:
FULLPIPE: Fix floaters direction
Changed paths:
engines/fullpipe/floaters.cpp
diff --git a/engines/fullpipe/floaters.cpp b/engines/fullpipe/floaters.cpp
index eb29706..aaeefb2 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);
More information about the Scummvm-git-logs
mailing list