diff options
author | Retro-Junk | 2016-09-17 18:53:54 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2016-09-17 20:43:57 +0200 |
commit | ec378ac3b74c001cb0972ca1949b8716d6eb6af5 (patch) | |
tree | 53b6bb94d8461e5a4d923ebf7b30326621ea2852 /engines | |
parent | 80419708d03811ac1605ccf1cafa34e64f389646 (diff) | |
download | scummvm-rg350-ec378ac3b74c001cb0972ca1949b8716d6eb6af5.tar.gz scummvm-rg350-ec378ac3b74c001cb0972ca1949b8716d6eb6af5.tar.bz2 scummvm-rg350-ec378ac3b74c001cb0972ca1949b8716d6eb6af5.zip |
FULLPIPE: Fix teleportation when turning mid-walk
Diffstat (limited to 'engines')
-rw-r--r-- | engines/fullpipe/motion.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/fullpipe/motion.cpp b/engines/fullpipe/motion.cpp index b910c815a2..ba627a96a1 100644 --- a/engines/fullpipe/motion.cpp +++ b/engines/fullpipe/motion.cpp @@ -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; |