diff options
author | Retro-Junk | 2016-08-22 23:15:01 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-22 22:22:00 +0200 |
commit | c5828a41f4cdd2f37f01d463bcf295265965b80b (patch) | |
tree | 7649c6a2371bff86fa414a1470a852da170f737b /engines | |
parent | cb5bf0796e1af8413a2aab137d6315cc498c0417 (diff) | |
download | scummvm-rg350-c5828a41f4cdd2f37f01d463bcf295265965b80b.tar.gz scummvm-rg350-c5828a41f4cdd2f37f01d463bcf295265965b80b.tar.bz2 scummvm-rg350-c5828a41f4cdd2f37f01d463bcf295265965b80b.zip |
FULLPIPE: Inverse search mode behavior in MctlGraph::getHitNode
Diffstat (limited to 'engines')
-rw-r--r-- | engines/fullpipe/motion.cpp | 4 | ||||
-rw-r--r-- | engines/fullpipe/motion.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/fullpipe/motion.cpp b/engines/fullpipe/motion.cpp index 4a08b4e115..d3b29b324a 100644 --- a/engines/fullpipe/motion.cpp +++ b/engines/fullpipe/motion.cpp @@ -2400,13 +2400,13 @@ MessageQueue *MctlGraph::makeQueue(StaticANIObject *obj, int xpos, int ypos, int return mq; } -MovGraphNode *MctlGraph::getHitNode(int x, int y, int fuzzyMatch) { +MovGraphNode *MctlGraph::getHitNode(int x, int y, int strictMatch) { for (ObList::iterator i = _nodes.begin(); i != _nodes.end(); ++i) { assert(((CObject *)*i)->_objtype == kObjTypeMovGraphNode); MovGraphNode *node = (MovGraphNode *)*i; - if (fuzzyMatch) { + if (!strictMatch) { if (abs(node->_x - x) < 15 && abs(node->_y - y) < 15) return node; } else { diff --git a/engines/fullpipe/motion.h b/engines/fullpipe/motion.h index 207ce2fe15..93b57c7aaa 100644 --- a/engines/fullpipe/motion.h +++ b/engines/fullpipe/motion.h @@ -392,7 +392,7 @@ public: void generateList(MctlMQ *movinfo, Common::Array<MovGraphLink *> *linkList, LinkInfo *lnkSrc, LinkInfo *lnkDst); MessageQueue *makeWholeQueue(MctlMQ *mctlMQ); - MovGraphNode *getHitNode(int x, int y, int fuzzyMatch); + MovGraphNode *getHitNode(int x, int y, int strictMatch); MovGraphLink *getHitLink(int x, int y, int idx, int fuzzyMatch); MovGraphLink *getNearestLink(int x, int y); double iterate(LinkInfo *linkInfoSource, LinkInfo *linkInfoDest, Common::Array<MovGraphLink *> *listObj); |