diff options
author | Nicola Mettifogo | 2008-07-14 00:21:05 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2008-07-14 00:21:05 +0000 |
commit | d0ae6885ac34510cea3363b72f9467dbe62de762 (patch) | |
tree | 6a9880122ce3acc8180449c01d8fd6cc144eff39 /engines | |
parent | 7b2645248c0d645266107bd732256c1c541f7278 (diff) | |
download | scummvm-rg350-d0ae6885ac34510cea3363b72f9467dbe62de762.tar.gz scummvm-rg350-d0ae6885ac34510cea3363b72f9467dbe62de762.tar.bz2 scummvm-rg350-d0ae6885ac34510cea3363b72f9467dbe62de762.zip |
Fixed regression in walk code. Now standing frames are correctly selected when the character encounters an unexpected blocking object in his/her path.
svn-id: r33053
Diffstat (limited to 'engines')
-rw-r--r-- | engines/parallaction/walk.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/parallaction/walk.cpp b/engines/parallaction/walk.cpp index 40dfddb903..a717b615e6 100644 --- a/engines/parallaction/walk.cpp +++ b/engines/parallaction/walk.cpp @@ -354,6 +354,7 @@ void Parallaction_ns::walk(Character &character) { if (newPos == curPos) { debugC(1, kDebugWalk, "walk was blocked by an unforeseen obstacle"); finalizeWalk(character); + targetPos = newPos; // when walking is interrupted, targetPos must be hacked so that a still frame can be selected } } |