Fix Berlios bug #1745.
authorEric S. Raymond <esr@thyrsus.com>
Wed, 1 Dec 2010 12:25:38 +0000 (07:25 -0500)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 1 Dec 2010 12:25:38 +0000 (07:25 -0500)
sst.py

diff --git a/sst.py b/sst.py
index 5bc4bac3fe31fc27db8d0ebf272f251edf5b1611..9b3628570761e78fa487414e9484f475216e7c8b 100644 (file)
--- a/sst.py
+++ b/sst.py
@@ -1577,7 +1577,7 @@ def torps():
        torpedo(game.sector, course[i], dispersion, number=i, nburst=n)
        if game.alldone or game.state.galaxy[game.quadrant.i][game.quadrant.j].supernova:
            return
-    if (game.state.remkl + len(game.state.kcmdr) + game.state.nscrem)==0:
+    if (game.state.remkl + len(game.state.kcmdr) + game.state.nscrem)<=0:
        finish(FWON);
 
 def overheat(rpow):