diff options
author | Retro-Junk | 2016-08-23 23:18:44 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-24 20:43:22 +0200 |
commit | 1111b24eea98bd31497585fed7dbafd353dd06e8 (patch) | |
tree | a561ff7a802a6e2cffae05993087e732dcde6806 /engines/fullpipe | |
parent | 380902eb071fbe960e615d0c29fc1f5099aa9af8 (diff) | |
download | scummvm-rg350-1111b24eea98bd31497585fed7dbafd353dd06e8.tar.gz scummvm-rg350-1111b24eea98bd31497585fed7dbafd353dd06e8.tar.bz2 scummvm-rg350-1111b24eea98bd31497585fed7dbafd353dd06e8.zip |
FULLPIPE: Fix direction calculation in MctlGraph::getLinkDir
Diffstat (limited to 'engines/fullpipe')
-rw-r--r-- | engines/fullpipe/motion.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/fullpipe/motion.cpp b/engines/fullpipe/motion.cpp index d3b29b324a..f0166daee0 100644 --- a/engines/fullpipe/motion.cpp +++ b/engines/fullpipe/motion.cpp @@ -2476,7 +2476,7 @@ int MctlGraph::getLinkDir(Common::Array<MovGraphLink *> *linkList, int idx, Comm } if (abs(node3->_x - node2->_x) <= abs(node3->_y - node2->_y)) - return (node3->_y < node2->_x) + 2; + return (node3->_y < node2->_y) + 2; else return node3->_x >= node2->_x; } |