Permalink
Browse files

fixd seeker

  • Loading branch information...
1 parent ec37c66 commit d5e2ea58ae6bf1c917a47280009890dde3447aa1 @luciotorre committed Jul 8, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 bots/maptools.py
  2. +1 −1 bots/seeker.py
View
2 bots/maptools.py
@@ -271,7 +271,7 @@ def waypoint(self, start, goal):
return self.cell_to_world(*way)
def set_goal(self, goal):
- self.goal = self.world_to_cell(*goal)
+ self.goal = self.player_world_to_cell(*goal)
Q = set()
self.goalpath = D = {}
View
2 bots/seeker.py
@@ -91,7 +91,7 @@ def messageReceived(self, message):
self.way = random.choice(self.waypoints)
self.gridmap.set_goal(self.way)
- if pp is not None:
+ if pp is not None and enemies == 0:
# a powerup!!!
print "poweeeeeeeeeeeeer"
if self.gridmap.visible(self.pos, pp):

0 comments on commit d5e2ea5

Please sign in to comment.