From 13c7397837a5cd5bbd8ebbefc84b11a2a01cc701 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 31 Jan 2009 01:58:10 +0000 Subject: Bugfix to properly have one NPC character move out of the way when two NPCs bump into each other svn-id: r36153 --- engines/lure/res_struct.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'engines/lure') 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; -- cgit v1.2.3