From: Eric S. Raymond Date: Mon, 9 Oct 2006 22:51:25 +0000 (+0000) Subject: Fix another basic error. X-Git-Tag: 2.0~108 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=8e7c8e784c1c049639c3c08d93e4c29d4cc4f012;p=super-star-trek.git Fix another basic error. --- diff --git a/src/sst.py b/src/sst.py index 47c50d9..51ad07b 100644 --- a/src/sst.py +++ b/src/sst.py @@ -240,7 +240,7 @@ class coord: def is_valid(self): return self.x != None and self.y != None def __eq__(self, other): - return other != None and self.x == other.y and self.y == other.y + return other != None and self.x == other.x and self.y == other.y def __add__(self, other): return coord(self.x+other.x, self.y+other.y) def __sub__(self, other): @@ -1535,7 +1535,7 @@ def fry(hit): def attack(torps_ok): # bad guy attacks us # torps_ok == False forces use of phasers in an attack - # game could be over at this point, check + # game could be over at this point, check if game.alldone: return attempt = False; ihurt = False;