Skip to content

Commit

Permalink
FULLPIPE: Fix teleportation when turning mid-walk
Browse files Browse the repository at this point in the history
  • Loading branch information
Retro-Junk authored and sev- committed Sep 17, 2016
1 parent 8041970 commit ec378ac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions engines/fullpipe/motion.cpp
Expand Up @@ -1675,8 +1675,9 @@ int MctlGraph::getDirByStatics(int idx, int staticsId) {

int MctlGraph::getDirByMovement(int idx, int movId) {
for (int i = 0; i < 4; i++)
if (_items2[idx]->_subItems[i]._walk[0]._movementId == movId || _items2[idx]->_subItems[i]._turn[0]._movementId == movId ||
_items2[idx]->_subItems[i]._turnS[0]._movementId == movId)
if (_items2[idx]->_subItems[i]._walk[0]._movementId == movId
|| _items2[idx]->_subItems[i]._walk[1]._movementId == movId
|| _items2[idx]->_subItems[i]._walk[2]._movementId == movId)
return i;

return -1;
Expand Down

0 comments on commit ec378ac

Please sign in to comment.