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:
Paul Gilbert 2009-01-31 01:58:10 +00:00
parent e7afcecda2
commit 13c7397837

View File

@ -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;