Skip to content

Commit

Permalink
FULLPIPE: Implement MovGraph2::getShortSide()
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- authored and Kamil Zbróg committed Oct 24, 2013
1 parent accb9e1 commit fdf1fc3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions engines/fullpipe/motion.cpp
Expand Up @@ -924,9 +924,17 @@ MovGraphNode *MovGraph2::findNode(int x, int y, int fuzzyMatch) {
}

int MovGraph2::getShortSide(MovGraphLink *lnk, int x, int y) {
warning("STUB: MovGraph2::getShortSide()");
bool cond;

return 0;
if (lnk)
cond = abs(lnk->_movGraphNode2->_x - lnk->_movGraphNode1->_x) > abs(lnk->_movGraphNode2->_y - lnk->_movGraphNode1->_y);
else
cond = abs(x) > abs(y);

if (cond)
return x <= 0;
else
return ((y > 0) + 2);
}

int MovGraph2::findLink(Common::Array<MovGraphLink *> *linkList, int idx, Common::Rect *rect, Common::Point *point) {
Expand Down

0 comments on commit fdf1fc3

Please sign in to comment.