Skip to content

Commit

Permalink
Call heartbeat on step_walker even if speed is higher than distance (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfevi authored and elicwhite committed Aug 9, 2016
1 parent 0f9351e commit 49f9177
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pokemongo_bot/step_walker.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def __init__(self, bot, speed, dest_lat, dest_lng):
def step(self):
if (self.dLat == 0 and self.dLng == 0) or self.dist < self.speed:
self.api.set_position(self.destLat, self.destLng, 0)
self.bot.heartbeat()
return True

totalDLat = (self.destLat - self.initLat)
Expand Down

0 comments on commit 49f9177

Please sign in to comment.