mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 05:38:56 +00:00
Bugfix to properly have one NPC character move out of the way when two NPCs bump into each other
svn-id: r36153
This commit is contained in:
parent
e7afcecda2
commit
13c7397837
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user