Nova bug fix.
authorEric S. Raymond <esr@thyrsus.com>
Tue, 28 Feb 2017 14:51:13 +0000 (09:51 -0500)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 28 Feb 2017 14:51:13 +0000 (09:51 -0500)
sst.py

diff --git a/sst.py b/sst.py
index 599ebc9fae1ef5aa4506004a4520b949fdc7c04b..a9aa1a4b53e005fb82d0c95dd3bd8cd8fd7bd0f8 100755 (executable)
--- a/sst.py
+++ b/sst.py
@@ -2747,7 +2747,7 @@ def nova(nov):
                             deadkl(neighbor, iquad, neighbor)
                             continue   # neighbor loop
                         # Else enemy gets flung by the blast wave
-                        newc = neighbor + neighbor - hits[-1]
+                        newc = neighbor + neighbor - start
                         proutn(crmena(True, iquad, "sector", neighbor) + _(" damaged"))
                         if not newc.valid_sector():
                             # can't leave quadrant
@@ -5953,7 +5953,7 @@ def choose():
     game.state.nscrem = game.inscom = (game.skill > SKILL_FAIR)
     game.state.remtime = 7.0 * game.length
     game.intime = game.state.remtime
-    game.state.remkl = game.inkling = 2.0*game.intime*((game.skill+1 - 2*randreal())*game.skill*0.1+.15)
+    game.state.remkl = game.inkling = int(2.0*game.intime*((game.skill+1 - 2*randreal())*game.skill*0.1+.15))
     game.incom = min(MINCMDR, int(game.skill + 0.0625*game.inkling*randreal()))
     game.state.remres = (game.inkling+4*game.incom)*game.intime
     game.inresor = game.state.remres