From c1cd3fa4d82baf41398f62c5a70f45c0ba447c63 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 18 Feb 2017 14:46:54 -0500 Subject: [PATCH] Paxify pylint about the source code. --- sst.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sst.py b/sst.py index 2c07143..757c8c8 100755 --- a/sst.py +++ b/sst.py @@ -3519,6 +3519,8 @@ def imove(icourse=None, noattack=False): # check for edge of galaxy kinks = 0 while True: + + kink = False if icourse.final.i < 0: icourse.final.i = -icourse.final.i @@ -3827,16 +3829,14 @@ class course: if self.bearing < 0.0: self.bearing += 12.0 self.angle = ((15.0 - self.bearing) * 0.5235988) - if origin is None: - self.origin = cartesian(game.quadrant, game.sector) - else: - self.origin = cartesian(game.quadrant, origin) self.increment = Coord(-math.sin(self.angle), math.cos(self.angle)) bigger = max(abs(self.increment.i), abs(self.increment.j)) self.increment /= bigger self.moves = int(round(10*self.distance*bigger)) self.reset() self.final = (self.location + self.moves*self.increment).roundtogrid() + self.location = self.origin + self.nextlocation = None def reset(self): self.location = self.origin self.step = 0 -- 2.31.1