Skip to content

Commit

Permalink
Call find_close_cells with current position instead of target one (#1015
Browse files Browse the repository at this point in the history
)
  • Loading branch information
alvarogzp authored and solderzzc committed Jul 26, 2016
1 parent c5af117 commit 7e10307
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pokemongo_bot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def start(self):

def take_step(self):
location = self.navigator.take_step()
cells = self.find_close_cells(*location[0:2])
cells = self.find_close_cells(*self.position[0:2])

for cell in cells:
self.work_on_cell(cell, location)
Expand Down

0 comments on commit 7e10307

Please sign in to comment.