From: Eric S. Raymond Date: Mon, 20 Feb 2012 01:06:36 +0000 (-0500) Subject: pylint found a real bug in phaser damage allocation vs. multiple targets. X-Git-Tag: 2.2~108 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=0c5cf86d08ff17e7578232cd5fcbf54fbc9c6be9;p=super-star-trek.git pylint found a real bug in phaser damage allocation vs. multiple targets. --- diff --git a/sst.py b/sst.py index 0969547..742e104 100755 --- a/sst.py +++ b/sst.py @@ -1660,10 +1660,9 @@ def checkshctrl(rpow): def hittem(hits): "Register a phaser hit on Klingons and Romulans." - kk = 0 w = Coord() skip(1) - for (k, wham) in enumerate(hits): + for (kk, wham) in enumerate(hits): if wham==0: continue dustfac = randreal(0.9, 1.0)