diff options
author | Eugene Sandulenko | 2013-11-03 01:55:58 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2013-11-03 01:55:58 +0200 |
commit | 1b408217bdccb57f28a4ef283bebbecb60cf460d (patch) | |
tree | a6a9d4f04bab057927b3f1b2afbbf2b5dd7ce67e /engines/fullpipe/motion.cpp | |
parent | 2362498d54af2764465beb1d5e2fac77395ccbf0 (diff) | |
download | scummvm-rg350-1b408217bdccb57f28a4ef283bebbecb60cf460d.tar.gz scummvm-rg350-1b408217bdccb57f28a4ef283bebbecb60cf460d.tar.bz2 scummvm-rg350-1b408217bdccb57f28a4ef283bebbecb60cf460d.zip |
FULLPIPE: Fix warnings
Diffstat (limited to 'engines/fullpipe/motion.cpp')
-rw-r--r-- | engines/fullpipe/motion.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/fullpipe/motion.cpp b/engines/fullpipe/motion.cpp index d058403838..8fecd8304e 100644 --- a/engines/fullpipe/motion.cpp +++ b/engines/fullpipe/motion.cpp @@ -851,7 +851,7 @@ MessageQueue *MovGraph2::doWalkTo(StaticANIObject *obj, int xpos, int ypos, int Common::Array<MovGraphLink *> tempLinkList; double minPath = findMinPath(&linkInfoSource, &linkInfoDest, &tempLinkList); - debug(0, "MovGraph2::doWalkTo(): path: %lf parts: %d", minPath, tempLinkList.size()); + debug(0, "MovGraph2::doWalkTo(): path: %g parts: %d", minPath, tempLinkList.size()); if (minPath < 0.0 || ((linkInfoSource.node != linkInfoDest.node || !linkInfoSource.node) && !tempLinkList.size())) return 0; @@ -1003,7 +1003,7 @@ int MovGraph2::findLink(Common::Array<MovGraphLink *> *linkList, int idx, Common } } node3 = node1; - } else if (idx != linkList->size() - 1) { + } else if (idx != (int)(linkList->size() - 1)) { MovGraphLink *lnk = (*linkList)[idx + 1]; if (lnk->_movGraphNode1 == node1 || lnk->_movGraphNode1 == node1) { |