Skip to content

Commit

Permalink
FULLPIPE: Some renames in MovGraphLink
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Jul 20, 2016
1 parent abb33e5 commit 46aadaa
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 87 deletions.
6 changes: 3 additions & 3 deletions engines/fullpipe/messagehandlers.cpp
Expand Up @@ -775,13 +775,13 @@ int MovGraph_messageHandler(ExCommand *cmd) {
int top;

if (link) {
MovGraphNode *node = link->_movGraphNode1;
MovGraphNode *node = link->_graphSrc;

double sq = (ani->_oy - node->_y) * (ani->_oy - node->_y) + (ani->_ox - node->_x) * (ani->_ox - node->_x);
int off = (node->_field_14 >> 16) & 0xFF;
double off2 = ((link->_movGraphNode2->_field_14 >> 8) & 0xff) - off;
double off2 = ((link->_graphDst->_field_14 >> 8) & 0xff) - off;

top = off + (int)(sqrt(sq) * off2 / link->_z);
top = off + (int)(sqrt(sq) * off2 / link->_length);
} else {
top = (gr->calcOffset(ani->_ox, ani->_oy)->_field_14 >> 8) & 0xff;
}
Expand Down

0 comments on commit 46aadaa

Please sign in to comment.