Skip to content

Commit

Permalink
flake8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
luken committed Oct 1, 2015
1 parent 09e374e commit 7e42276
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spock/plugins/helpers/movement.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"""

import logging
import math

from spock.plugins.base import PluginBase
from spock.utils import pl_announce
Expand All @@ -28,6 +27,7 @@ def stop(self):
def is_moving(self):
return self.move_location is not None


@pl_announce('Movement')
class MovementPlugin(PluginBase):
requires = ('Net', 'Physics', 'ClientInfo', 'Event')
Expand Down Expand Up @@ -74,7 +74,8 @@ def do_pathfinding(self):
clinfo = self.clientinfo
if move.move_location is not None:
if round(move.move_location.x, 2) == round(clinfo.position.x, 2) \
and round(move.move_location.z, 2) == round(clinfo.position.z, 2):
and round(move.move_location.z, 2) == \
round(clinfo.position.z, 2):
move.stop()
else:
self.physics.move_target(move.move_location)
Expand Down

0 comments on commit 7e42276

Please sign in to comment.