diff options
author | Paul Gilbert | 2009-01-31 01:58:10 +0000 |
---|---|---|
committer | Paul Gilbert | 2009-01-31 01:58:10 +0000 |
commit | 13c7397837a5cd5bbd8ebbefc84b11a2a01cc701 (patch) | |
tree | 8776a8f0383519f84c66a4b7efb687b142367f80 /engines | |
parent | e7afcecda279ff06b375a826cd7e49441dd6cf7e (diff) | |
download | scummvm-rg350-13c7397837a5cd5bbd8ebbefc84b11a2a01cc701.tar.gz scummvm-rg350-13c7397837a5cd5bbd8ebbefc84b11a2a01cc701.tar.bz2 scummvm-rg350-13c7397837a5cd5bbd8ebbefc84b11a2a01cc701.zip |
Bugfix to properly have one NPC character move out of the way when two NPCs bump into each other
svn-id: r36153
Diffstat (limited to 'engines')
-rw-r--r-- | engines/lure/res_struct.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/lure/res_struct.cpp b/engines/lure/res_struct.cpp index c3d29eef53..6fa52abc4a 100644 --- a/engines/lure/res_struct.cpp +++ b/engines/lure/res_struct.cpp @@ -1173,11 +1173,9 @@ int PausedCharacterList::check(uint16 charId, int numImpinging, uint16 *impingin hotspot->setPauseCtr(IDLE_COUNTDOWN_SIZE); } + if (result == 0) + charHotspot->setRandomDest(); result = 2; - if (charHotspot->currentActions().isEmpty()) - charHotspot->currentActions().addFront(START_WALKING, charHotspot->roomNumber()); - else - charHotspot->currentActions().top().setAction(START_WALKING); } return result; |