Skip to content

Commit

Permalink
Fix wrong teleport message (#3935)
Browse files Browse the repository at this point in the history
* fix wrong log message

* fix log message- Walking
  • Loading branch information
leanhdaovn authored and elicwhite committed Aug 14, 2016
1 parent 9e65d3d commit 0469202
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pokemongo_bot/cell_workers/follow_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def initialize(self):

if self.path_start_mode == 'closest':
self.ptr = self.find_closest_point_idx(self.points)

else:
self.ptr = 0

Expand Down Expand Up @@ -83,7 +83,7 @@ def find_closest_point_idx(self, points):
botlng = self.bot.api._position_lng
lat = float(point['lat'])
lng = float(point['lng'])

dist = distance(
botlat,
botlng,
Expand Down Expand Up @@ -137,7 +137,7 @@ def work(self):

self.emit_event(
'position_update',
formatted="Teleported from {last_position} to {current_position} ({distance} {distance_unit})",
formatted="Walking from {last_position} to {current_position} ({distance} {distance_unit})",
data={
'last_position': (last_lat, last_lng, 0),
'current_position': (lat, lng, 0),
Expand Down

0 comments on commit 0469202

Please sign in to comment.