aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorRetro-Junk2016-09-17 18:53:54 +0300
committerEugene Sandulenko2016-09-17 20:43:57 +0200
commitec378ac3b74c001cb0972ca1949b8716d6eb6af5 (patch)
tree53b6bb94d8461e5a4d923ebf7b30326621ea2852 /engines
parent80419708d03811ac1605ccf1cafa34e64f389646 (diff)
downloadscummvm-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.cpp5
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;