Mercurial > parpg-source
changeset 181:ff4f9b387cac
Fixed npcs not actually wandering around.
author | Beliar <KarstenBock@gmx.net> |
---|---|
date | Thu, 15 Mar 2012 14:15:42 +0100 |
parents | 0d0422243490 |
children | f131a1b01254 |
files | behaviours/npc.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/behaviours/npc.py Sat Mar 10 13:31:47 2012 +0100 +++ b/behaviours/npc.py Thu Mar 15 14:15:42 2012 +0100 @@ -105,4 +105,5 @@ @type location: fife.Location @param location: Where the NPC will walk to. @return: None""" - self.agent.move('walk', location, self.speed - 1) \ No newline at end of file + self.agent.move('walk', location, self.speed) + coords = location.getMapCoordinates()