X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=sst.py;h=33249cfc555a39a19ea01ac08813f980ae7a3468;hp=daf42f8648484ebda35c3046a79ab05644734a8c;hb=e3fd0f24d95e530878bf869025ee5993f8f3f392;hpb=7cbb73ff4c5da8d4f0b470e61ba4f632c7865812 diff --git a/sst.py b/sst.py index daf42f8..33249cf 100755 --- a/sst.py +++ b/sst.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python """ sst.py -- Super Star Trek 2K @@ -31,7 +31,7 @@ try: except NameError: my_input = input -version = "2.4" +version = "2.5" docpath = (".", "doc/", "/usr/share/doc/sst/") @@ -836,7 +836,7 @@ def supercommander(): sc = game.state.kscmdr for (i, base) in enumerate(game.state.baseq): basetbl.append((i, (base - sc).distance())) - if game.state.baseq > 1: + if len(game.state.baseq) > 1: basetbl.sort(key=lambda x: x[1]) # look for nearest base without a commander, no Enterprise, and # without too many Klingons, and not already under attack. @@ -6054,6 +6054,7 @@ def newqad(): game.iplnet = None game.neutz = game.inorbit = game.landed = False game.ientesc = game.iseenit = game.isviolreported = False + game.tholian = None # Create a blank quadrant game.quad = fill2d(QUADSIZE, lambda i, j: '.') if game.iscate: