aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorRetro-Junk2016-09-06 21:50:33 +0300
committerEugene Sandulenko2016-09-06 21:44:46 +0200
commit471c76a9a75a41615f6fd0788cb36f0da18f961f (patch)
tree4ca3195fc9e0a250753fca11852f961169d8d317 /engines
parentcec1f1336e6253b86d6fedeac015976970daa1f9 (diff)
downloadscummvm-rg350-471c76a9a75a41615f6fd0788cb36f0da18f961f.tar.gz
scummvm-rg350-471c76a9a75a41615f6fd0788cb36f0da18f961f.tar.bz2
scummvm-rg350-471c76a9a75a41615f6fd0788cb36f0da18f961f.zip
FULLPIPE: Fix rounding error in MctlGraph::makeQueue
Diffstat (limited to 'engines')
-rw-r--r--engines/fullpipe/motion.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/fullpipe/motion.cpp b/engines/fullpipe/motion.cpp
index 490e593bbc..b910c815a2 100644
--- a/engines/fullpipe/motion.cpp
+++ b/engines/fullpipe/motion.cpp
@@ -2332,7 +2332,7 @@ MessageQueue *MctlGraph::makeQueue(StaticANIObject *obj, int xpos, int ypos, int
double dst1 = sqrt((double)((ypos - nod->_y) * (ypos - nod->_y) + (xpos - nod->_x) * (xpos - nod->_x)));
int dst = linkInfoDest.link->_graphDst->_z - nod->_z;
- mctlMQ1.distance2 = (int)(nod->_z + (dst1 * (double)dst / linkInfoDest.link->_length));
+ mctlMQ1.distance2 = nod->_z + (int)(dst1 * (double)dst / linkInfoDest.link->_length);
putToLink(&mctlMQ1.pt2, linkInfoDest.link, 1);